I have exported a map to a .osm file (this is an xml). I want to parse and draw a map in iPhone using this .osm file.
I’ve tried exploring CloudMade and RouteMe but couldn’t find any detail or example of consuming .osm
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think .osm files are a good choice as a data source for drawing maps on a mobile device. The process to render a map from raw OSM data is quite complicated, I would consider pre-processing it to a simpler format. (Even though if JavaScript can do it…)
I am not aware of any iPhone-ready libraries/solutions, but if you want to explore, see the Rendering page on the OpenStreetMap wiki, which lists many examples of the available rendering software.