- Home /
Gps location on my unity map
Hi.
I want to crate a map for a historical palace that is 2km*3km.
In this map users with a phone can see their locations on map with Gps.
How can I convert latitude & longitude (Input.location.lastData.latitude/longitude) to unity map coordinate?
Thanks.
In its simplest equirectangular projection, position.x = longitude, position.z = latitude. If you want something more complicated than that you'll have to explain more of your requirements.
Thanks. What about map size? What scale must I use to fit map with real latitude & longitude?
Not sure what you mean - maps can be any size, and Unity units can represent any dimension. Just multiply by the desired scale factor.
Your answer
Follow this Question
Related Questions
GPS Position im my custom 3d map 1 Answer
Creating an UI GPS map 0 Answers
How to track user's speed and distance using GPS in Unity? 0 Answers
Location Service on iOS 1 Answer
Problem converting longitude/latitude to screen positions. 1 Answer