Get coordinates from address text

We use coordenates to improve the efficiency of the deliveries and to track our messengers, that’s why we recommend to send the coordenates on every request that needs an address.

This service can help you improve the process of getting coordenates from a text address, this is also known as geocode and it’s similar to Google Maps, Mapbox, Open Street, etc. But it´s an exposed API.

Keep in mind that if we don’t receive the coordenates of your addresses, the error range can increase drastically.

Requirements:

  • Use your API Key and know how to use it.

  • Have the address with the following format <Street StreetNumber, Neighborhood, ZipCode>.

If you require a mostly accurate answer provide the full address as it is based on google managers.


Argument Structure:

Name

Type

Required

Name

Type

Required

address

String

Yes


Request:

The mutation used is geocode.

1 2 3 4 5 6 7 8 9 10 11 12 13 { geocode(address:"Carlos B. Zetina 138, Escandón I Secc, Miguel Hidalgo, 11800 Ciudad de México, CDMX") { address latitude longitude zipCode street externalNumber city state } }

Response:

The expected response should be like the shown below.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 { "data": { "geocode": [ { "address": "Carlos B Zetina 138 Escandon I Secc Miguel Hidalgo 11800 Ciudad de Mexico CDMX", "latitude": 19.4020954, "longitude": -99.1837187, "zipCode": "11800", "street": "Carlos B Zetina", "externalNumber": "138", "city": "Ciudad de México", "state": "Ciudad de México" } ] } }

IVOY Coverage

Check the following links if you need to identify the coverage offered by our IVOY team for collection and deliveries.

 

Next steps