Udders
Udders

Reputation: 6976

Codeigniter - Google maps help

I am hoping someone can help me on a website that I currently building I store the users postcdode, using google maps api I am wanting to find the city that postcode belongs too, is that at all possible.

I am currently working with the following library, however I do not think that has the functionality I need.

http://www.in-the-attic.co.uk/2010/05/07/codeigniter-gmaps-library/

Upvotes: 0

Views: 833

Answers (2)

John Morton
John Morton

Reputation: 335

I'm working on something similar. Here's a link to my project so far. This will eventually be the module that translates an address into lat/lng for a larger Code Igniter app that manages a data base of store locations. Does that help?

https://github.com/johnfmorton/Get-That-LatLng

Upvotes: 1

BIOSTALL
BIOSTALL

Reputation: 1696

By using the Geocoding service provided by the Google Maps API you can pass in a postcode (or indeed any address) and it will return all elements of the location, including street, town, county and lat/long coordinates.

Read more about it here

Hope that helps.

PS. The library you are using is old and uses version 2 of the Google Maps API. Garry at In The Attic has since released a new version, or I've got a version I built too available here for use.

Upvotes: 1

Related Questions