4

I already asked the same thing to Mapbox support and it's been a week and no response, so here I am.

Here at my company we are developing a system that uses a delivery service to deliver products to our customers. This delivery service uses Mapbox to get the latitude and longitude of the customer's address so they can tell the exact spot where to deliver the order to their workers.

So we started using mapbox to get these required data but we are facing a problem here.

You see, for addresses here in the city of Natal, in Brazil, everything works fine, not a problem at all. But when there's a delivery to Parnamirim, a nearby city, mapbox service simply can't find the correct address. We filled everything correctly and still the results are not the ones we asked. Can anyone help-me with that?

For example, we want to find the coordinates of the following address: "Rua dos Pinheiros, 10, Encanto Verde. Parnamirim - RN" The zip code is "59149-594".

Street name: Rua dos Pinheiros
Number: 10
Neighborhood: Encanto Verde
City: Parnamirim
State: RN (Rio Grande do Norte)
ZIP Code: 59149-594
Country: Brazil

With this data, we send you the following query: https://api.mapbox.com/geocoding/v5/mapbox.places/rua%20dos%20pinheiros%2010%20encanto%20verde%20Parnamirim%2059149-594%20BR-RN.json (I've hidden the access_token here, but it is present on the URL).

I've tried to add the country=BR&language=BR to the, but still facing the same problem.

If you search for this address on Google, it returns the correct one. But with Mapbox, it simply can't find the correct. This is happening with all addresses from Parnamirim. We don't know about other ones, but this is a big problem for us.

What can we do to fix it? Mapbox doesn't have addresses from Parnamirim in the db? Another crazy thing is that the coordinates are weird. In the first result from the above request, the coordinates takes us to the middle of the sea. Are those in the correct order?

12
  • 1
    You can always just use Apple's Geocoder to deal with addresses and coordinates, even if you are using Mapbox maps. Then use the coordinate on your maps.
    – Magnas
    Commented Jul 15, 2020 at 15:50
  • When you request coordinates it can take some time for the Geocoder to return correct data and sometimes it will initially return (0 latitude, 0 longitude). This is in the ocean south of Nigeria. Is this what you see sometimes?
    – Magnas
    Commented Jul 15, 2020 at 15:52
  • 1
    @GabrielAzevedo I think is related to the language coverage by mapbox docs.mapbox.com/api/search/#language-coverage Commented Jul 16, 2020 at 19:23
  • 1
    @GabrielAzevedo I just migrate to tomtom.com, this one have better support for spanish address, maybe portuguese is also supported as well, mapbox lacks on geocoding on lang differents than english Commented Jul 17, 2020 at 17:34
  • 1
    Hi, everyone! I'm facing the same problem. With Argentina... Do you find a solution or should I use another provider's GeoCoder?
    – sebasira
    Commented Dec 30, 2020 at 12:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.