0
1

We need to be able to put points on a map, based on IP address. Is this possible? What is the best way to geolocate By IP? Any suggestions are appreciated. Thanks!

asked 17 Oct '12, 15:54

bouncefish's gravatar image

bouncefish
4113
accept rate: 0%

Thanks everyone for their feedback!

(22 Oct '12, 16:22) bouncefish

Best way? That depends on your needs. There are various APIs (some free) that you send the IP to and they return the approximate location. These would be fine for casual/light usage. If you need to do heavy work then you may be best to pull bulk geoip data down periodically into your own database and serve it out from there.

The thing to note about location based on IP is that the accuracy can range from very accurate to very inaccurate depening on many different factors and it's practically impossible to know in advance whether the result will be accurate or not! Using HTML5 geolocation (providing the client enables it) should offer better accuracy as it does not rely on IP address alone.

permanent link

answered 17 Oct '12, 21:00

porjo's gravatar image

porjo
16826
accept rate: 0%

How to display a map with multiple markers has already been answered and IP Geolocation is out of the scope of OSM (and there are multiple possibilities like a simple geoip database and the HTML5 geolocation feature).

permanent link

answered 17 Oct '12, 20:49

scai's gravatar image

scai ♦
31.0k18278434
accept rate: 23%

HTML5 geolocation provides you higher accuracy compare to IP geolocation, but, the drawbacks is, permission need to be explicitly granted from the end user for solution.

Getting location information from IP will be less intrusive and seamless way with a little bit trade off on the accuracy. Anyway, it's depend on the the nature of your solutions.

Anyway, both solution above shall provide you the latitude and longitude information enabling you to plot the marker in your map.

If you need information on the differences between these 2, this site shall be able to give you some idea: ipgeo5.com and ipinfodb.com

permanent link

answered 22 Oct '12, 01:47

chrislim2888's gravatar image

chrislim2888
301
accept rate: 0%

If you need it, here's a very simple HTML5 geolocation example.

(22 Oct '12, 09:20) SomeoneElse ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111
×29
×6

question asked: 17 Oct '12, 15:54

question was seen: 7,302 times

last updated: 06 Nov '13, 11:52

powered by OSQA