Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using OpenStreetMap .osm XML data in iOS

I have an iOS app using Google Maps to display a city with POIs. Now I want to offer an offline map too, which a user does not require a data connection to display.

I checked the OpenStreetMap project, and a .osm export of this city is 5MB - perfect for an iOS app. I also checked the routeme library, but there only tiles are used, and no vector data is generated. Is this correct? The file size of the PNG tiles is too big for my app.

Which library makes sense to display OSM-XML data? I know there is cloudmade, but is this the right decision? I'm a bit confused by their licensing model. Any other suggestions? Hints?

like image 310
Aemsn Avatar asked May 04 '11 17:05

Aemsn


People also ask

Can I use iOS to edit OpenStreetMap?

iOS is the native operating system of Apple’s mobile devices. iPhone, iPad, and iPod touch devices can be used to view and edit OpenStreetMap-based maps as well as to record GPS tracks that can be uploaded to OSM to aid in editing.

What is an OSM XML file?

The major tools in the OSM universe use an XML format following a XML schema definition that was first used by the API only. Basically it is a list of instances of our data primitives ( nodes, ways, and relations ). Here is a shortened example of a complete OSM XML file.

Can I download raw data from OpenStreetMap?

It is possible to download raw data for a certain area, entire countries or regions, or certain features such as roads or buildings. There are also many ways to use use existing sets or of OpenStreetMap data, such as map images, routing software and more.

What format are OpenStreetMap tiles encoded in?

Our OpenStreetMap vector tiles are encoded in the widely used and openly documented vector tile format. This means the tiles are compatible with all software tools implementing this format specification. The style definition for the design of the map may vary in different tools - our open styles are implemented in GL Style.


1 Answers

Try skobbler/telenav's sdk based on OSM: http://developer.skobbler.com. You've got offline maps (small vector maps), custom POIs and configurable styles - it should cover your needs.

And the free tier should be enough for you to launch your app and get a couple of users until you'd have to pay.

like image 116
Ando Avatar answered Nov 09 '22 03:11

Ando