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

Hi! I am working on an app ( https://github.com/maxvonhippel/Chetawani ) designed to deliver useful OSM information and accurate news to people in Nepal. I have no idea how to parse OSM data (I have been told it is an XML format?) to an MKMapView and at the moment am just presenting the map itself as a web view. Anyone have any suggestions RE how I could get the XML data, refreshing regularly, and present it as an overlay on my map? Just looking for a point in the right direction, not full code or anything. Thanks!

EDIT: To be more specific, I want to overlay date from THIS map onto an MKMapView. Yes there is an Open Street Map app, but I am trying to make an app which has a toolset of different features for aid workers in Nepal, including but not limited to the map.

asked 28 Apr '15, 19:43

MaxvH's gravatar image

MaxvH
11112
accept rate: 0%

edited 28 Apr '15, 20:44

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

could you please describe your idea in more words? What do you mean with "overlay on my map"? You want to overlay OSM data (which? all?) on your map (which map? based on which data?)? Isn't there already a useful iOS OSM app?

(28 Apr '15, 20:11) aseerel4c26 ♦

I want to overlay this data: https://www.openstreetmap.org/relation/184633#map=10/27.7042/85.5581&layers=HN Including pins and the info you get when you tap on a pin, onto an MKMapView for iOS for on and offline use (refreshes when online). Yes there is an app but I am making something else- including access to the OSM humanitarian map of Nepal is just a feature of my project.

(28 Apr '15, 20:16) MaxvH

Okay, thanks for the addition. Sorry, still not clear to me. And what do you mean by "date from THIS map"? The map in total? Okay, you say "the map itself as a web view", which means that you have this map (the Humanitarian map) already? But, what else? Offline? Or do you want to render an own map like the Humanitarian map?

Okay, do you only want the notes (the markers/pins)?

(28 Apr '15, 20:20) aseerel4c26 ♦

Hhaha let me further clarify :) I want to take the pins from the humanitarian map, with their notes, and parse them and present them on an MKMapView. So for example, there is a note on the web map that says something like"bridge destroyed, under construction" and has the date and name of poster. I'd like to have a pin on my map that, when tapped, presents a little popup with that information. So the problem is parsing the humanitarian notes people put up and presenting them natively on iOS on a map view. Also to be clear I only want the map of the region shown in my link.

(28 Apr '15, 20:24) MaxvH

okay, thanks. :-) I hope we get to some good understanding in the end. See my answer below how to get the "notes". I am myself not aware of MKMapView, maybe others can help here more, after all that clarification.

(28 Apr '15, 20:28) aseerel4c26 ♦

Great, thanks! I will take a look at your links tonight and see what I can do. MKMapView is just the map view Apple provides in Xcode for iOS :)

(28 Apr '15, 20:29) MaxvH
showing 5 of 6 show 1 more comments

This is the basis of all OSM-based maps: https://wiki.openstreetmap.org/wiki/Planet.osm - one representation is in a XML format, yes. Maps get rendered from this data, also the "Humanitarian" map. If you want only data for a class of features https://wiki.openstreetmap.org/wiki/Overpass_API is often used.

For info on the OSM notes (the markers in your links, what you seem to want) see https://wiki.openstreetmap.org/wiki/Notes (there is an API and a download option similar to the planet). Note that those "OSM notes" are not "humanitarian notes".

Also see https://wiki.openstreetmap.org/wiki/About in general.

permanent link

answered 28 Apr '15, 20:22

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 28 Apr '15, 20:42

1

If you want OSM notes you might find https://github.com/SomeoneElseOSM/Notes01 useful. It's designed to produce a GPX file that a Garmin can read, but I suspect many other platforms could read the GPX files it produces too (or they could be converted using something like GPSBabel).

(28 Apr '15, 20:54) SomeoneElse ♦
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:

×84
×50
×45
×29
×5

question asked: 28 Apr '15, 19:43

question was seen: 3,597 times

last updated: 28 Apr '15, 20:54

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