# Maps में दिशाओं के लिए अपना ऐप पेश करें

> किसी एजेंट से routing ऐप के लिए ज़रूरी geographic coverage file बनवाएँ, जिस version को आप submit करते हैं उसके लिए upload करवाएँ, और area बदलने पर उसे बदलवाएँ।

Source: https://air.build/hi/docs/app-store/list-a-routing-app-in-maps/

routing ऐप ऐसी दिशाएँ देता है जिन्हें दूसरे ऐप माँग सकते हैं: Apple की [Location and Maps Programming Guide](https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/ProvidingDirections/ProvidingDirections.html) कहती है कि उसकी दिशाएँ Maps ऐप और डिवाइस के दूसरे ऐप को मिलती हैं। Apple का पेज [Upload a geographic coverage file](https://developer.apple.com/help/app-store-connect/manage-submissions-to-app-review/upload-a-geographic-coverage-file) इसे iOS और watchOS के लिए "an app that provides point-to-point directions for other apps" कहता है। routing ऐप को geographic coverage file चाहिए: उन areas का नक्शा जहाँ वह दिशाएँ देता है। `asc` की help कहती है कि routing ऐप को यह चाहिए, और Apple का पेज कहता है कि file upload होने तक routing ऐप पर App Review शुरू नहीं होता।

> [!NOTE]
> AirBuild में coverage file की कोई screen नहीं है। आप प्रोजेक्ट की चैट में किसी एजेंट से पूछते हैं, और वह `asc routing-coverage` इस्तेमाल करता है ([asc: ऐप और App Store लिस्टिंग](https://air.build/hi/docs/cli/asc-apps/#routing-coverage) में दिया गया)।

## पूछने से पहले

- ऐप को ख़ुद routing ऐप के रूप में set up होना चाहिए। coverage file के साथ एजेंट से यह भी करवाएँ। Apple की [Location and Maps Programming Guide](https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/ProvidingDirections/ProvidingDirections.html) इसे बताती है, और यह भी कि coverage file में क्या हो सकता है।
- जानें कि आपका ऐप किन areas में दिशाएँ देता है: शहर, क्षेत्र या देश।
- file किसी App Store version के साथ जाती है, इसलिए पहले version शुरू करें। देखें [अपने ऐप का अपडेट ship करें](https://air.build/hi/docs/app-store/ship-an-update/#start-the-next-version), या नए ऐप के लिए [App Store Connect में अपने ऐप का record बनाएँ](https://air.build/hi/docs/app-store/create-your-app-record/)।

## file कैसी दिखती है

file GeoJSON है। कुछ भी upload करने से पहले, `asc` जाँचता है कि:

- file का नाम `.geojson` पर ख़त्म होता है।
- उसमें एक object है जिसका `type` `MultiPolygon` है, कम से कम एक polygon के साथ।
- polygon की हर ring में कम से कम चार points हैं, और उसके पहले और आख़िरी points एक जैसे हैं।
- हर point में पहले longitude है, फिर latitude: longitude -180 और 180 के बीच, latitude -90 और 90 के बीच।

जैसे, एक rectangle:

```json title="coverage.geojson"
{
  "type": "MultiPolygon",
  "coordinates": [
    [
      [[-9.25, 38.65], [-9.05, 38.65], [-9.05, 38.80], [-9.25, 38.80], [-9.25, 38.65]]
    ]
  ]
}
```

## file बनाएँ और upload करें

प्रोजेक्ट की चैट में पूछें, जैसे:

```text
Our app gives transit directions in Lisbon and Porto. Make the routing coverage file for those areas and upload it for version 1.0.
```

1. एजेंट प्रोजेक्ट में `.geojson` file लिखता है। areas जाँचने के लिए, upload से पहले उससे बताने को कहें कि हर shape क्या cover करता है।
2. वह `asc routing-coverage create` से version के लिए file upload करता है। अगर file ऊपर के किसी नियम को तोड़ती है, तो `asc` upload से पहले रुक जाता है और बताता है कि क्या ग़लत है, जैसे "invalid routing coverage GeoJSON: top-level type must be MultiPolygon"।
3. एजेंट बताता है कि upload हो गया। वह बाद में `asc routing-coverage view` से जाँच सकता है, जो किसी version की coverage file दिखाता है।

फिर हमेशा की तरह version submit करें। देखें [App Review में सबमिट करें और रिलीज़ करें](https://air.build/hi/docs/app-store/submit-for-review/#submit-a-version)।

अगर एजेंट `asc release stage` से version तैयार करता है, तो वह उसी run में `--routing-coverage-file` से file upload कर सकता है। `asc release stage` को हमेशा `--confirm` चाहिए, इसलिए एजेंट पहले आपसे पूछता है। देखें [asc: रिव्यू और रिलीज़](https://air.build/hi/docs/cli/asc-release/#release)।

## area बदलें

किसी version की एक coverage file होती है। उसे बदलने के लिए, एजेंट `asc routing-coverage delete` से पुरानी file delete करता है, फिर नई upload करता है। `asc` सिर्फ़ `--confirm` के साथ delete करता है, इसलिए एजेंट पहले आपसे पूछता है। नई file upload होने तक version की कोई coverage file नहीं होती। `--routing-coverage-file` के साथ `asc release stage` पुरानी file को एक run में बदल देता है; इसे भी `--confirm` चाहिए।

## सवाल

**क्या अगला version coverage file रखता है?**

file एक App Store version की होती है, और `asc` यह नहीं बताता कि नया version उसे रखता है या नहीं। अगला version शुरू करते समय, एजेंट से `asc routing-coverage view` से उसे जाँचने और न हो तो file फिर से upload करने को कहें।

**asc कहता है कि longitude या latitude range से बाहर है।**

हो सकता है points उल्टे हों: GeoJSON में longitude पहले आता है। एजेंट से उन्हें बदलने को कहें। उल्टे points अक्सर जाँच पास कर जाते हैं और area को ग़लत जगह रख देते हैं, इसलिए एजेंट से हर shape बताने को कहें (step 1)।

**asc कहता है कि शुरुआती और आख़िरी points एक जैसे होने चाहिए।**

हर ring बंद होनी चाहिए: उसका आख़िरी point पहले को दोहराता है। एजेंट से file ठीक करने को कहें।

**asc कहता है कि file में .geojson extension होना चाहिए।**

एजेंट से file का नाम बदलने को कहें ताकि वह `.geojson` पर ख़त्म हो।

**मेरे routing ऐप पर App Review शुरू नहीं हुआ।**

Apple का पेज कहता है कि coverage file upload होने तक review शुरू नहीं होता। एजेंट से `asc routing-coverage view` से version जाँचने को कहें।

**मेरा ऐप दिशाएँ देने वाला ऐप नहीं है। क्या इसे यह चाहिए?**

`asc` की help कहती है कि file routing ऐप के लिए ज़रूरी है। Apple का पेज routing ऐप को ऐसा ऐप बताता है जो दूसरे ऐप के लिए point-to-point दिशाएँ देता है।
