简体   繁体   English

如何使用html / html5中的用户输入获取完整的地理位置详细信息?

[英]How to get full geo location details using user input in html/html5?

In android I could use google play services and geo location functions to get a user to type a string like "London, England" or "McDonalds" etc.., and have the service take that string and return a set of Location Objects. 在android中,我可以使用Google Play服务和地理位置功能来让用户键入“ London,England”或“ McDonalds”等字符串,然后让该服务使用该字符串并返回一组Location Objects。 Each one has a city,address,country,lat,long etc... details. 每个人都有一个城市,地址,国家,纬度,长等...详细信息。

I'm now making a web app version of it and I want to know if its possible to do this in HTML/html5 with any plugins preferable by trusted companies like Google. 我现在正在制作它的Web应用程序版本,我想知道是否有可能使用受信任的公司(如Google)首选的HTML / html5插件来做到这一点。

Thanks. 谢谢。

I have to question if you even looked ;) 我不得不问你是否看过;)

https://developers.google.com/maps/documentation/javascript/tutorial https://developers.google.com/maps/documentation/javascript/tutorial

The Maps service was born on the web, of course that exists! 当然,地图服务诞生于网络上!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM