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

in my android application when i take a picture the GPS read info of my position (lat/long) , I need to get the lat/long for my town and insert it to my database , I download my region file by mean of JSOM the file was in osm extention , my mind tell me that i need to write a program to parse this file (raw data) and insert the whole node's (id + lat +long + other info ) to my database is that the best solution ,becasue time killing me ! .

asked 14 Sep '14, 17:37

abogaseem's gravatar image

accept rate: 0%

if the gps as a fix when the picture is taken it should be in the jpeg's exif info.

(15 Sep '14, 08:24) andy mackey

It's not quite clear what your actual problem is. Your smartphone should already be capable of obtaining lat and lon via the integrated GPS device.

Do you need the name of the town for the current position? In that case you can use Nominatim and run a simple reverse geocoding query.

Do you need the position of a specific town? In that case use Nominatim with a regular geocoding query.

permanent link

answered 14 Sep '14, 20:42

scai's gravatar image

scai ♦
accept rate: 23%

See this previous answer to adding geo-tagged photos in Josm.
photos (Not relevant to this question)

permanent link

answered 14 Sep '14, 18:27

nevw's gravatar image

accept rate: 9%

edited 14 Sep '14, 19:28

that's not my question ! , my is how to extract the raw data in file.osm into my database

(14 Sep '14, 19:03) abogaseem

you are telling us about two kinds of raw data:

1) photos with or without a GPS position that should be contained in the mentioned EXIF information field of each photo.

2) you have downloaded OSM data in raw XML OSM format via the JOSM editor.

But we cannot give you more solutions about your "database" unlesss you tell us IN DETAIL what database you mean.

Tell us more about your aim!

(22 Sep '14, 18:51) stephan75

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 14 Sep '14, 17:37

question was seen: 6,333 times

last updated: 22 Sep '14, 18:51

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