mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

Access open street map features informations

Open bourgeoismaxime opened this issue 8 years ago • 2 comments

Hello, I'm using Mapbox 1.4.5 on Unity 2018.2.8f1 on the Editor (for now). In the past, I was able to find all the details about the map (get the roads names, get the features types ...) but I cannot find how anymore. Ultimately my goal is to be able to know what is around (names of the roads, how many parks, where is the closest fast food, ...). Is there a way to know that kind of stuff using the Unity SDK ?

Thanks, Max

Edit : Or is there a way to link the "Map features" section with the "Point of interest" one ?

bourgeoismaxime avatar Sep 24 '18 20:09 bourgeoismaxime

Hi @bourgeoismaxime. All of this data is available to you. I would check out the City Simulator, Data Explorer, and the POI Placement examples (POIs have a video tutorial).

Take a look at how the Map Features are configured. These examples will show you how to set it up using the SDK. For information on the layers used, check out the documentation for the tileset layer reference.

jordy-isaac avatar Sep 25 '18 16:09 jordy-isaac

Thanks for the information. Is there a way to access all these datas by script using a specific position (lat,lon) and a range ? The aim is to know what's near a specific position without always storing the datas using the Map features section.

Edit : can we only use this API : https://www.mapbox.com/api-documentation/#tilequery ?

bourgeoismaxime avatar Sep 26 '18 17:09 bourgeoismaxime