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

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

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 ♦
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

accept rate: 0%

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

(22 Oct '12, 09:20) SomeoneElse ♦

Yes, it is possible to geolocate using the IP address. However, it isn't the most accurate method to pinpoint the user's location. It is suited best as an approximation of the board area where the user might be present, rather than pinpoint.

Most IP geolocation APIs provide geocoordinate data. You can use BigDataCloud's IP geolocation: https://www.bigdatacloud.com/ip-geolocation-apis

If you are interested to learn more about IP to location accuracy, you can read this detailed blog post. https://www.bigdatacloud.com/blog/how-accurate-can-ip-geolocation-get

permanent link

answered 3 hours ago

deepBDC's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 17 Oct '12, 15:54

question was seen: 8,606 times

last updated: 3 hours ago

powered by OSQA