L
L
levano4ka2014-10-20 21:36:23
PHP
levano4ka, 2014-10-20 21:36:23

How to determine the user's city?

Good evening! Please tell me how to do location detection on a static site (bootstrap page). Is it necessary that one main page is loaded for Moscow, and another for Novosibirsk? How can this be done as simply as possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan, 2014-10-20
@0neS

stackoverflow.com/questions/409999/getting-the-loc...
Namely, a request to an API service like ipinfo.io

A
Alexander Taratin, 2014-10-20
@Taraflex

https://sypexgeo.net/

2
2vtlk, 2014-10-21
@2vtlk

Why does no one say that in purely statics this cannot be done? Any server language is needed to determine the user's ip. And then a request to the API of any geo-service that returns the city.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question