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

how to get the latitude and longitude of a user without google, PHP ?

0
1

Hello everyone,

I would like to know 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.

My goal is to let users find people in specific location, so when they make a research via Elasticsearch, it will show them choosen located users with a radius range.

Our website is running under symfony3 , Php.

hope someone can help us, Thank's by advance

Best regards

asked 16 Mar '17, 11:47

aladib's gravatar image

aladib
9112
accept rate: 0%

edited 25 Mar '17, 09:37

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

3

The question isn't clear. What is your actual input and desired output ? So far this question seems unrelated to OSM, and a quick duckduck search points towards https://www.elastic.co/guide/en/elasticsearch/reference/1.4/query-dsl-geo-shape-query.html

(16 Mar '17, 12:30) Vincent de P... ♦

One Answer:

3

OSM and other OSM-related software can't tell you where a user is. It would be the location services in the user's device/browser that would do that.

answered 16 Mar '17, 17:58

alester's gravatar image

alester
6.6k266100
accept rate: 28%

Source code available on GitHub .