[OSM-talk-be] New user: Kreatos - wants to do import of their shops

André Pirard A.Pirard.Papou at gmail.com
Sat Sep 21 00:39:38 UTC 2013


On 2013-09-20 15:55, Marc Gemis wrote :
> I welcomed a new user, expecting that it was related to the Kreatos
> hairdressers company:
>
> their reply:
>
> Dank voor de informatie. 
> Weet u een manier om (meerdere) nodes (in één keer) te uploaden naar
> OpenStreetMap? Bij Google is dit via Google Places, met een XLS of XML
> file. 
> Heb hiervoor gezocht op de website van OpenStreetMap, maar ik raak er
> niet meteen wijs uit? 
> De informatie zou uit en MySQL database komen, dus een api met
> rechtstreekse import/sync mogelijkheid hiervoor zou natuurlijk nog
> beter zijn…
>
>
>
> ---
>
> How do I proceed ? Show them the OSM Api v0.6 ? + policy page ? Josm
> upload ? Ask them the file and do the upload myself + verification of
> individual points ?
>
> I was also wondering this week whether we could contact companies to
> ask them to share their shops or fuel stations. What do you think
> about that ?
>
>
> regards
>
> m
>

Hi Marc,

I would create a single sample shop node in a new JOSM layer and save it
to an *.osm file.
A shop looks like this:

  <node id='-108978' action='modify' visible='true' lat='50. ...'
lon='5. ...'>
    <tag k='name' v='Name of the shop' />
    <tag k='shop' v='bakery' />
  </node>

Then I would

      o either edit that file, replicate the node and change whatever
        must be changed
      o or run a perl regexp command to transform another file to that
        format
  * reload the result in JOSM
  * maybe check that everything is OK (esp. in the right place) or let
    them do that later
  * update OSM
  * save the *.osm file again

It can also be done with waypoints in a GPX file, but I know no GPX
extension to add OSM tags.

Notes: 

  * the IDs can be any negative number but must be different
  * it's important to "save the *.osm file again": it will contain the
    real IDs and it can help to make later mass updates

If the problem is regexp, I can (most probably ;-) do it for you, but
I'll have to find how to generate the ID.
Send node sample and parseable flat text file (like csv).

Cheers,

André.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-be/attachments/20130921/39ce1241/attachment.htm>


More information about the Talk-be mailing list