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

hi can some body help me? I need to extract a specific road or highway gps data (Latitude and Longitude)from(openstreetmap)is it possible to extract these informations from it? I will appreciate your help

asked 21 Jul '14, 09:42

backtome's gravatar image

backtome
1111
accept rate: 0%

edited 26 Jul '14, 07:45

2

Would it be possible to add a bit more information about what you're trying to do? Are you trying to add data to OpenStreetMap, retrieve data from it, or do something else?

Also - don't feel that you have to ask in English - there are lots of people who speak many languages here.

(21 Jul '14, 09:45) SomeoneElse ♦

First, if you've not seen it already, have a read of this section of the beginners' guide in the OpenStreetMap wiki - it explains the sorts of data that you'll find in OSM.

One of the sorts of data that that page refers to is a "way" - a list of OSM "nodes". Each OSM node has a latitude and longitude value. A street may consist of several ways (if you look at this node you'll see that it is part of three ways with the same name - one single carriageway part and two ways each forming half of a dual carriageway) so you'll probably want to select ways by name

How you search for things by name depends on how much data you want. If you just want one specific road then Overpass Turbo might be an option - browse to an area of interest and use a query like this:

<osm-script output="json" timeout="25">
  <!-- gather results -->
  <union>
    <query type="way">
      <has-kv k="name" v="Rosemary Street"/>
      <bbox-query {{bbox}}/>
    </query>
  </union>
  <!-- print results -->
  <print mode="body"/>
  <recurse type="down"/>
  <print mode="skeleton" order="quadtile"/>
</osm-script>

If you want more data, then you'll want to download an extract of the OSM for your area (use one of the "extract" links from here) and then extract data from it, perhaps as described in this question.

permanent link

answered 26 Jul '14, 10:13

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

1

thank you for your helpful answer

(30 Jul '14, 14:45) backtome
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:

×133

question asked: 21 Jul '14, 09:42

question was seen: 4,690 times

last updated: 30 Jul '14, 14:45

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