如何获取当前位置?
我已获得该地址,并被要求查找我的当前位置。
http://maps.google.com/maps/geo?q=address&output=csv
这是什么样的地址?我如何获取有关该地址的信息?这是API吗?
请帮忙
I have been provided with this address and told to find the current location of me
http://maps.google.com/maps/geo?q=address&output=csv
What kind of address is this and how can I get the information about this? Is this API?
Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
假设您提供 http://maps.google.com/maps/geo ?q=newyork&output=csv,结果将是
200,4,40.7143528,-74.0059731。最后 2 个值表示纽约的纬度和经度值...我希望它会对您有所帮助。如果您将此网址集成到您的应用程序中,您可以获取坐标并使用它们在 iPhone 中的 MKMapView 中显示地图。
suppose if you give http://maps.google.com/maps/geo?q=newyork&output=csv, the result will be
200,4,40.7143528,-74.0059731.The last 2 values mean latitude and longitude value for New york...I hope it will help you.If you integrate this url in your app, you can get co-ordinates and use them to show the map in MKMapView in iPhone.
602,0,0,0
这是您的位置坐标。根据 Google 地图,您位于 此处
602,0,0,0
this is your location coordinates. and according to Google map you are located here
这样你就可以获得地址的纬度和经度。如果您请求此 url 并且使用您想要查找坐标的地址,您将获得 4 个值作为响应。您可以使用此函数获取带有纬度和地址日志的位置对象:
您可以在此处找到更多帮助:http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial
With that you can get latitude and longitude of an address. If you request this url and you use the address you want to find the coordinates you get 4 value as a response. You can use this function to get a Location object with lat and log of your address:
You can find more help here: http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial