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

Re: Search for Places using Mapbox

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/

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

3 (edited by elfasito 2021-02-10 10:47:29)

Re: Search for Places using Mapbox

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?

Re: Search for Places using Mapbox

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.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.