Why did I end up in some random place in New Jersey yesterday? The wife was upset.
It sure looks like it’s because taking a mapbox_id
from a Search Box API /suggest
result and feeding it back into /retrieve
gave us a totally different place. The suggestion result was for Oak Ridge, and the retrieve result for that mapbox_id
was off in Patterson.
This can be observed right in Mapbox’s own Search playground UI. Notice how we click on the “Oak Ridge” result, but end up in Patterson instead:
There’s a proximity param there set to -74.18959999999998
,41.02220326169345
which seems necessary for the bug to manifest.
What is going on here? I tried making a bug ticket with Mapbox, but got an auto-reply saying they would not respond unless I pay for a $50 support plan.
Is there a way to just get the lat/lon directly in the /suggest
response? Or is there some other way this is supposed to work?