This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

how to find latitude and longitude of current location in php

1
1

how to find latitude and longitude of current location in php

asked 13 Mar '17, 15:25

lucky%20boy's gravatar image

lucky boy
36112
accept rate: 0%

3

You need to give more context. Is this an OpenStreetMap-specific question? Are you using a library that uses OpenStreetMap? What do you mean by "current location"? Who is going to win the French presidential election?

(13 Mar '17, 15:29) Richard ♦

Hi Richard

I want automatically get my geolocation latitude and longitude via OSM

(14 Mar '17, 15:21) lucky boy

Hello everyone, his question is, how to get the lat and long of users using OSM map, and Nomatim or something else, without using google services, because It wont work in China and few other countries.

hope someone can help us, Thank's by advance

Best regards

(16 Mar '17, 11:27) aladib

One Answer:

1

OSM is just a big pile of data; it can't help you with your current location any more than a book that I'm currently reading can help me with mine.

What you probably want to ask is "how do I create a web site that asks the web browser that it is running in for the user's current location". A quick web search suggests that there is lots of help out there for that. It's not really a question that has anything to do with OpenStreetMap.

This answer is marked "community wiki".

answered 14 Mar '17, 15:49

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

edited 14 Mar '17, 15:49