Offer your app for directions in Maps
Have an Agent make the geographic coverage file a routing app needs, upload it for the version you submit, and replace it when the area changes.
A routing app gives directions that other apps can ask for: Apple’s Location and Maps Programming Guide ↗ says its directions are available to the Maps app and to other apps on the device. Apple’s page Upload a geographic coverage file ↗ calls it “an app that provides point-to-point directions for other apps”, for iOS and watchOS. A routing app needs a geographic coverage file: a map of the areas where it gives directions. The asc help says routing apps require one, and Apple’s page says App Review doesn’t start on a routing app until the file is uploaded.
Before you ask
- The app itself has to be set up as a routing app. Ask the Agent to do it with the coverage file. Apple’s Location and Maps Programming Guide ↗ covers it, and also what the coverage file may contain.
- Know the areas your app gives directions in: cities, regions or countries.
- The file goes with an App Store version, so start the version first. See Ship an update to your app, or Create your app’s App Store Connect record for a new app.
What the file looks like
The file is GeoJSON. Before it uploads anything, asc checks that:
- The file name ends in
.geojson. - It holds one object whose
typeisMultiPolygon, with at least one polygon. - Each ring of a polygon has at least four points, and its first and last points are the same.
- Each point is longitude first, then latitude: longitude between -180 and 180, latitude between -90 and 90.
For example, one rectangle:
{
"type": "MultiPolygon",
"coordinates": [
[
[[-9.25, 38.65], [-9.05, 38.65], [-9.05, 38.80], [-9.25, 38.80], [-9.25, 38.65]]
]
]
}Make the file and upload it
Ask in the Project’s chat, for example:
Our app gives transit directions in Lisbon and Porto. Make the routing coverage file for those areas and upload it for version 1.0.- The Agent writes the
.geojsonfile in the Project. To check the areas, ask it to describe what each shape covers before it uploads. - It uploads the file for the version with
asc routing-coverage create. If the file breaks one of the rules above,ascstops before uploading and says what’s wrong, for example “invalid routing coverage GeoJSON: top-level type must be MultiPolygon”. - The Agent tells you the upload is done. It can check later with
asc routing-coverage view, which shows the coverage file of a version.
Then submit the version as usual. See Submit to App Review and release.
If the Agent prepares the version with asc release stage, it can upload the file in the same run with --routing-coverage-file. asc release stage always needs --confirm, so the Agent asks you first. See asc: review and release.
Change the area
A version has one coverage file. To change it, the Agent deletes the old one with asc routing-coverage delete, then uploads the new one. asc deletes only with --confirm, so the Agent asks you first. Until the new file is uploaded, the version has no coverage file. asc release stage with --routing-coverage-file replaces the old file in one run; it also needs --confirm.
Questions
Does the next version keep the coverage file?
asc doesn’t say whether a new version keeps it. When you start the next version, ask the Agent to check it with asc routing-coverage view and to upload the file again if it’s missing.asc says the longitude or latitude is out of range.
asc says the start and end points must be the same.
asc says the file must use the .geojson extension.
.geojson.