NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum


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

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%

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%

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: and

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, you can use free IP geolocation API that provides point coordinates based on the IP address.

There are tonnes of IP geolocation APIs which can do the job. Try BigDataCloud's IP geolocation API which provides not just the coordinates of the IP address but also the area where the IP address might have been allocated. This is unique data that might be helpful.

They provide 10K queries per month for free and can be upgraded at a nominal feed.

alt text

permanent link

answered 01 Mar '21, 01:29

deepBDC's gravatar image

accept rate: 0%

Another provider that provides you with a really extensive and free dataset is

permanent link

answered 28 Mar '23, 10:07

AndreasA1990's gravatar image

accept rate: 0%

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]( "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: 13,532 times

last updated: 28 Mar '23, 10:07

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum