I’m currently trying to modify the OAI-PMH Harvester module to allow ingest of MARC21 recordst. As part of this I’m attempting to add an o-module-mapping:feature to add a geolocation point to the records.
The CSVImport extension within the Mapping module appears to do this via:
$json['o-module-mapping:feature'][] = [
'o-module-mapping:geography-type' => 'point',
'o-module-mapping:geography-coordinates' => [$latLng[1], $latLng[0]],
];
And so in an attempt to recreate this, I’m mapping the 970 x and y coordinates in a similar way:
$json[‘o-module-mapping:feature’] = [
‘o-module-mapping:geography-type’ => ‘point’,
‘o-module-mapping:geography-coordinates’ => [$lng, $lat],
];
What’s the proper way to go about this?