NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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

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.

permanent link
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

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×34

question asked: 13 Mar '17, 15:25

question was seen: 7,929 times

last updated: 16 Mar '17, 11:27

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum