[OSM-dev] OSM in a C apps

Ævar Arnfjörð Bjarmason avarab at gmail.com
Tue Nov 10 19:00:41 GMT 2009


On Tue, Nov 10, 2009 at 5:57 PM, Atton Jonathan
<jonathan.atton at gmail.com> wrote:
> Hello,
>
> I am not an openstreetmap user, consequently I do not know a lot about it.
>
> I am written a C application and I wish to integrate a map. My application
> is free (license LGPL), consequently I plan to use a free map and
> openstreetmap is the perfect choice for this. I am a developer in the
> project Enlightenment (windows manager + set of libraries + application) and
> I want to write a gui widget for the project and my application.
>
> Today, what is the best way to display OSM in a C application ? I saw
> Mapnick, I need to look deeper in this way but boost is required and I
> preferred to avoid big dependencies.
>
> What type of data should I use, download a jpeg/png directly ? or the data
> and create the map (this is what Mapnick does if I understand well) ?

If you just want to display a map widget somewhere then just
downloading tiles and displaying them is going to be a lot easier.
There are numerous applications to do this in numerous languages,
here's one in C/GTK:

    http://nzjrs.github.com/osm-gps-map/

You could also get the raw data and render it yourself using mapnik
but that's going to be a lot more complex to maintain.




More information about the dev mailing list