简体   繁体   中英

Implement Google Maps client side

I have a rails app where the admins are creating information about shops (name, description, address, directions etc). I want the admins to create a map for the shop as well, and I have understood that implementing this client-side (both for admins and users) is the way to go as I will hit the daily cap (2500 requests/day) that Google Maps has.

How would a map-creating implementation for the admins look like? Most of the times there will be addresses at hand, but sometimes not so something like a manual procedure (click on the map) has to work as well.

It will be the same for admin as well as others (by that I mean it will be in the browser, ofcourse you can serve out different maps depending on your needs) . Google Maps API is a client side solution.

Incase you need to encode addresses on the Map have a look at the Google Geocoding API .

Examples here might be of use.

Hope that helps :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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