[OSM-talk] k/v for import of list of gas stations of France?

Nick Burch openstreetmap at gagravarr.org
Fri Jan 12 14:12:02 GMT 2007


On Fri, 12 Jan 2007, Marcus Bauer wrote:
> On Fri, 2007-01-12 at 12:02 +0000, Nick Burch wrote:
>> Does your script check to see if the thing's already there? I should 
>> have some POI data to import into OSM shortly, but it's possible that 
>> some of the points are already in OSM. So, I'll want to check before 
>> each upload.
>
> No, it is just some few and simple lines of perl to take ascii and 
> convert it into .osm. The upload is done via JOSM. So if JOSM doesn't 
> check and the REST API doesn't check then there is no check for 
> duplicates.

My data's from all over the world, so checking it in josm might be a bit 
tedious. I think I'll probably want something that warns of potential 
clashes, but still outputs a .osm file for josm upload.

To avoid re-inventing the wheel, is there some existing OSM perl code to 
download nodes for a small area around a given point, and parse the xml 
into something useful?

Nick




More information about the talk mailing list