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

Hi,

I would like to capture latitude and longitude (or another searchable geocoding mechanism) when a user enters an address or selects a location on a map.

How can I do this?

Thanks, Jim

asked 07 Nov '22, 00:10

jtappe's gravatar image

jtappe
11112
accept rate: 0%


If you browse the map or do an address search the Lat Long are the co-ords of the screen center. Lat lon is highlighted.

alt text

permanent link

answered 07 Nov '22, 09:52

andy%20mackey's gravatar image

andy mackey
13.2k87143285
accept rate: 4%

edited 07 Nov '22, 10:41

Note : OSM represents South and West as negative numbers. With lat long North is a positive south is negative (-) East is positive, West is negative (-)

(07 Nov '22, 09:59) andy mackey

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:

×133

question asked: 07 Nov '22, 00:10

question was seen: 1,409 times

last updated: 07 Nov '22, 10:41

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