I want to allow users to pick their location using google maps. For example they would type in their zipcode and press enter. Afterwards I want to add the country and city where they are loc开发者_StackOverflow中文版ated in the database.
Is this functionality easy to develop? I'm looking for some guidance please.
If you know how it's quite easy. I'm not going to write it for you but you probably best start with looking how (reverse) geocoding in google maps works.
- http://code.google.com/apis/maps/documentation/javascript/examples/index.html (check the geocoding examples)
- http://code.google.com/apis/maps/documentation/geocoding/
- http://www.timshowers.com/2008/08/php-geocoding-tutorial-with-the-google-maps-api-part-one/
all the guidance you need already exist in documentations for these 2 products:
- http://codeigniter.com/user_guide/database/index.html
- http://code.google.com/apis/maps/documentation/javascript/basics.html
Maybe you could take a look at : http://net.tutsplus.com/articles/news/this-is-how-you-use-the-google-maps-api/ and search for Google Maps in the CodeIgniter wiki : http://codeigniter.com/wiki/
精彩评论