Topic: Search for Places using Mapbox
Hello,
I would like to do the same as this example
http://infinity-code.com/atlas/online-m … ample.html
but using a mapbox api instead of google api. Is that easily possible somehow?
Thanks,
Jürgen
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Search for Places using Mapbox
Hello,
I would like to do the same as this example
http://infinity-code.com/atlas/online-m … ample.html
but using a mapbox api instead of google api. Is that easily possible somehow?
Thanks,
Jürgen
Hello.
You can use any service you like.
But in this case, you will need to make a request and process the response yourself.
It's very easy too.
The mapbox documentation has all the endpoints, request parameters and response fields.
https://docs.mapbox.com/api/search/geocoding/
Hello, sorry for interrupting your thread @negruj0w1tsch
If you do not agree I will delete the reply.
I have a prettly similar doubt/ask.
I want to do the same but without a api service.
just want to show in a list the nearest markers (my own markers created inside the app).
is possible?
Hello.
Iterate all the markers that the map has (foreach (OnlineMapsMarker marker in OnlineMapsMarkerManager.instance)), calculate the distance from the marker to the target location (OnlineMapsUtils.DistanceBetweenPoints), and take the nearest ones.
P.S.
Your question is not related to the original question at all.
Next time please use your own threads.
Infinity Code Forum → Online Maps Help → Search for Places using Mapbox
Powered by PunBB, supported by Informer Technologies, Inc.