mapkit - iOS Routing App Registration -


i working on routing app , i'm following instructions found in ios location , maps programming guide.

i have registered app routing app performing following:

1) included mkdirectionsapplicationsupportedmodes key (supporting car, bus, pedestrian)

2) included directions.geojson file (contents below)

3) configured special document type (mkdirectionsrequest) handle incoming direction requests

4) added logic handle incoming directions in application openurl sourceapplication annotation

specifically, apple gives instructions on how test in simulator have also:

1) set debug scheme use directions.geojson file provided

2) after installing app on device or simulator, leave app , launch maps app specify start , end points directions.

at point apple's documentation indicates if things setup correctly should see option choose app (to send directions to). apple says...

your app should appear if geographic coverage file valid , contains 2 specified points. if not, check points geographical regions make sure correct.

i'm not seeing app option , i'm quite geojson file valid. have validated @ geojsonlint.com , can see box covering bulk of united states. see file gets copied sim when installing; however, still no option in maps app send routed directions app.

any ideas?

{ "type": "multipolygon",     "coordinates": [                     [[[-124.747009,48.396385], [-64.525452,48.031264], [-72.597656,23.644524], [-125.354004,32.240683]]]                     ]  } 

i quote documentation apple

specifying geographic coverage file contents

the geographic coverage file must contain single multipolygon shape defines boundaries of supported geographic regions. single multi polygon may contain multiple child polygons, each of defines boundaries around single geographic region. each child polygon contains 4 or more coordinate values define boundaries of polygon. per geojson specification, every child polygon must represent closed region—that is, first , last coordinate values must identical. therefore, must specify @ least 4 points define triangular region, simplest possible shape. of course, use more points define more complex polygons.

listing 7-2 shows example of geographic coverage file specifies 2 separate regions: 1 around san francisco , 1 around chicago. note coordinates each region surrounded seem set of brackets. in each case, first open bracket marks beginning of overall polygon shape, second open bracket defines beginning of exterior bounding polygon, , third open bracket marks beginning of first coordinate.

{ "type": "multipolygon",   "coordinates": [     [[[-122.7, 37.3], [-121.9, 37.3], [-121.9, 37.9], [-122.7, 37.9], [-122.7, 37.3]]],     [[[-87.9, 41.5], [-87.3, 41.5], [-87.3, 42.1], [-87.9, 42.1], [-87.9, 41.5]]]     ] } 

therefore think don't close region.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -