Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I find a 3D POI Marker's longitude and latitude? #844

Closed
omar-khalil opened this issue Jun 6, 2018 · 4 comments
Closed

How can I find a 3D POI Marker's longitude and latitude? #844

omar-khalil opened this issue Jun 6, 2018 · 4 comments
Assignees
Labels

Comments

@omar-khalil
Copy link

omar-khalil commented Jun 6, 2018

I know I can use the _props dictionary from the PoiMarkerHelper class to find the values of properties, but these don't include the point's longitude and latitude. Any help would be really appreciated!

@jordy-isaac jordy-isaac self-assigned this Jun 8, 2018
@jordy-isaac
Copy link
Contributor

Hi @DalinarKh thanks for the ticket! Can you tell us a bit more about your use case and what you're going to do with the lat/lon response? We might have some ideas to accomplish your goals.

@omar-khalil
Copy link
Author

Thanks for the response! I'd like to use this information to calculate the real world distance between the user and any given marker using the haversine formula.

@jordy-isaac
Copy link
Contributor

Hi @DalinarKh For this I would suggest using raycast and then using GeoToWorldPosition.

https://www.mapbox.com/mapbox-unity-sdk/api/unity/Mapbox.Unity.Utilities.Conversions.html

I hope this helps!

@tudorelu
Copy link

@DalinarKh did you manage to find a way?

@jordy-isaac Not sure how you mean to solve this using GeoToWorldPosition -> as we don't have the lat/long , but we have the unity world position?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants