Hello Emma,

I was hoping someone with more knowledge than I have would have answered this, but I have a couple of suggestions:

  *   OpenLayers, which has a geolocation module<https://openlayers.org/en/latest/apidoc/module-ol_Geolocation-Geolocation.html> and example at: https://openlayers.org/en/latest/examples/geolocation.html?q=geolocation.
  *   Leaflet, which has an AccuratePosition plugin<https://github.com/M165437/Leaflet.AccuratePosition> and example at:   https://m165437.github.io/Leaflet.AccuratePosition/

Both of these are open-source and use the W3C Geolocation API specification<https://www.w3.org/TR/geolocation-API/> which provides scripted access to geographical location information associated with the user’s device, by asking the user for permission to share their location, enabling the association of the user’s IP address with the detected location, mapping the result.

These may be rather wide of the mark, as I suspect you are more interested in IP lookup services like https://ipstack.com/ or https://www.ip2location.com/, but I thought I'd quickly send in, just in case helpful.

Chris


Chris Fleet
Map Curator | Collections and Research Department

National Library of Scotland
33 Salisbury Place, Edinburgh EH9 1SL

Tel: 0131 623 4670
Email: [log in to unmask]<mailto:[log in to unmask]>
Website:maps.nls.uk<https://maps.nls.uk/>
Twitter: @natlibscotmaps<https://twitter.com/natlibscotmaps>




________________________________
From: Maps-L: Map Librarians, etc. <[log in to unmask]> on behalf of Emma R Slayton <[log in to unmask]>
Sent: Thursday, June 4, 2020 7:19 PM
To: [log in to unmask] <[log in to unmask]>
Subject: Question on turning IP address into X and Y coordinates


External Email: This email originated from outside of the National Library of Scotland. Do not click links or open attachments unless you have verified the sender and know the content is safe.

Hello All,



I hope you are doing well.



My colleague and I received a request from a fellow librarian to recommend a good open-source IP/geolocation mapping software that enables an IP address to be transformed into geographical location (X and Y coordinates). Are there any tools or packages that people have found success with?



All the best,



Emma



--



Emma Slayton, PhD

Data Curation, Visualization, and GIS Specialist

Carnegie Mellon University Libraries

4408 Wean Hall

Pittsburgh, PA 15213

[log in to unmask]









National Library of Scotland, Scottish Charity, No: SCO11086

This communication is intended for the addressee(s) only. If you are not the addressee please inform the sender and delete the email from your system. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of National Library of Scotland. This message is subject to the Freedom of Information (Scotland) Act 2002 and data protection legislation. Personal data sent to the Library by email will be processed in accordance with the Library’s privacy information available at www.nls.uk/privacy. No liability is accepted for any harm that may be caused to your systems or data by this message.

Before you print please think about the ENVIRONMENT