简体   繁体   English

没有地图的Google Maps商店定位器

[英]Google maps store locator without map

I'm essentially trying to build a kind of store locator using Google Maps geocoder, but I want to find a way to write code that returns the nearest stores as hyperlinks on the page (probably inside a div), without placing everything on a map. 我本质上是在尝试使用Google Maps地理编码器构建一种商店定位器,但我想找到一种方法来编写代码,以将最近的商店作为超链接返回到页面上(可能在div内),而不将所有内容都放置在地图上。 I don't want to use a map, or markers and infowindows, etc... at least not to begin with. 我不想使用地图,标记和信息窗口等,至少不要一开始就使用。

I've followed a lot of the Google Maps API tutorials online, and it's been easy enough to build a basic working store locator that returns a set number of results inside a given radius by checking the input latlng against the values in my database, but I'm not all that skilled at js, and was wondering if anyone knew of any tutorials that might demonstrate the use of the geocoder for returning latlng search results just in text format, without a map. 我已经在线阅读了许多Google Maps API教程,并且很容易构建一个基本的工作商店定位器,通过对照数据库中的输入值检查输入latlng来返回给定半径内的一定数量的结果,但是我对js的了解不是很熟练,并且想知道是否有人知道有任何教程可以证明使用Geocoder来以纯文本格式返回latlng搜索结果而没有地图。

Thanks. 谢谢。

The use of the Google geocoder is not allowed without using the results on a Google Map. 如果不使用Google地图上的结果,则不允许使用Google地理编码器。

Note: the Geocoding API may only be used in conjunction with a Google map; 注意:地理编码API只能与Google地图结合使用; geocoding results without displaying them on a map is prohibited. 禁止对结果进行地理编码而不在地图上显示结果。 For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions. 有关允许的用法的完整详细信息,请查阅Maps API服务条款许可限制。

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

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