1
1

how to find latitude and longitude of current location in php

asked 13 Mar, 15:25

lucky%20boy's gravatar image

lucky boy
362
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, 15:29) Richard ♦

Hi Richard

I want automatically get my geolocation latitude and longitude via OSM

(14 Mar, 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, 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, 15:49

SomeoneElse's gravatar image

SomeoneElse ♦
26.6k57280614
accept rate: 15%

edited 14 Mar, 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:

×20

question asked: 13 Mar, 15:25

question was seen: 121 times

last updated: 16 Mar, 11:27

powered by OSQA