简体   繁体   English

Google Maps API-如何在特定商户地址中包含标记(和信息)?

[英]Google maps API - how to include marker (and info) for specific business address?

All the methods and examples I can find about the Google maps api is based on a postcode, or coordinates to get the desired location - what if I want to place a marker for a specific business which has been added to google maps, so it shows tel number etc like an embeded map would? 我可以找到的有关Google Maps api的所有方法和示例均基于邮政编码,或通过坐标获得所需的位置-如果我想为已添加到Google Maps的特定业务放置标记,该怎么办呢?像嵌入地图的电话号码等? Even if I use exact coordinates for the address it doesn't recognise it. 即使我使用精确的坐标作为地址也无法识别它。 Sure I'm missing something really simple here... 当然我在这里遗漏了一些非常简单的东西...

Thanks! 谢谢!

The Google Places API , this does what your looking for. Google Places API可以满足您的需求。 I couldn't tell you how to implement as of now because i am trying to put it inside of my Rails application but i will update my answer in the future when i do get it working though. 我现在无法告诉您如何实现,因为我正试图将其放入我的Rails应用程序中,但是当我确实将其运行时,我将在将来更新我的答案。

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

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