Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a map of all restaurants in Florida. I would like to have the center of the map be the address of the visitors IP. How can I do this?

share|improve this question
    
It may be helpful to describe your server environment in detail. –  blah238 Apr 15 '12 at 2:08
    
Expanding Blah238's comment, can you tell us what is the API that you are using? Would your clients visit your site through a mobile, or through a web browser? the answer to your question would very much depend on your configuration. –  Devdatta Tengshe Apr 15 '12 at 7:51
add comment

1 Answer

try http://stackoverflow.com/questions/3232516/geocode-an-ip-address then convert the response location to your spatial reference if you need to. zoom the map.

simple.

IP location is pretty broad though, so using the geolocation api would be more accurate.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.