[OpenLayers-Users] Newbie: automatic zoom based on city location
Andrew Larcombe
andrew at andrewlarcombe.co.uk
Fri Nov 2 07:33:33 EDT 2007
On 2 Nov 2007, at 11:07, Intengu Technologies wrote:
> How do you automate zooming to an area depending on the city you
> are in. I have seen this in http://www.mapbuzz.com/
>
You need a database and code which translates an IP address to a
physical location. There are commercial and free (for various values
of free) providors of this type of data. Search for 'geo ip' or
'host ip' in google for a start. Once you've determined the location
of your visitor you can write out your page containing your
OpenLayers code with the appropriate location.
Cheers,
Andrew
--
Andrew Larcombe
Freelance Geospatial, Database & Web Programming
web: http://www.andrewlarcombe.co.uk
email: andrew at andrewlarcombe.co.uk
icq: 306690163
More information about the Users
mailing list