[OSM-dev] Inserting OSM data

Iván Sánchez Ortega ivan at sanchezortega.es
Mon Mar 22 14:58:51 GMT 2010


El 22/03/2010 15:46, Andreas Höschler escribió:
> [...] selecting only those records that make up a way.

So you have a topologically correct road network. Niiiiiiiice :-)

>> Looky here: http://wiki.openstreetmap.org/wiki/API_v0.6
>
> Wow, I believe that's what I was looking for!! Scanning this page
[...]
> The ideal solution for use would be to send a WAY segment in OSM
> format to some service and receive a response with the IDs for the
> created way and the created nodes! But I understand this is not
> supported due to the obvious merging problem (avoid duplicates)!?

With the API, you can upload new nodes/ways/relations, fetch the 
existing ones, and update the existing ones (uploading a changeset).

The problem is that you might upload a new way that overlaps an existing 
OSM way. Either you upload it and merge with OSM tools, or you download 
the OSM data in the neighborhood, check if it overlaps, and update your 
data with the already-existing OSM data, etc etc.


Cheers,
-- 
Iván Sánchez Ortega <ivan at sanchezortega.es>




More information about the dev mailing list