P
P
proffmen proffmen2015-06-16 00:09:09
API
proffmen proffmen, 2015-06-16 00:09:09

Automatic detection of the user's address (city street house) when entering the map, how to implement?

Details... how to implement the ability to determine the user's address on the map automatically.
here a person visits the site, on the site there is a map - which shows his location with the ability to save geographic points as in the example - personal-maps.simplecoding.org (login and password in the tooltip), and is it possible to change the red mark with images from the database?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2015-06-17
@proffmen

Google the HTML5 Geolocation API. True, it will not work everywhere, but there should be no problems with phones.
webmap-blog.ru/obzors/ispolzuem-html5-geolocation-api

M
Muhammad, 2015-06-16
@muhammad_97

Here, as I understand it, the address is determined by IP, and then a tag is already put on the map. You can find the GeoIP database on the Internet if you need to do your own, or use the API of a third-party service.
Useful links on this topic:
IP Geolocation API Documentation - ipinfo.io - https://ipinfo.io/developers
IP Geolocation online API - https://db-ip.com/api/
GeoIP database - countries and cities, September 2013 / Habrahabr - m.habrahabr.ru/post/193024
Is there a sane online GeoIP database? — Toster.ru - Is there a sane online GeoIP database?
MaxMind: https://www.maxmind.com/ru/home

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question