[OSM-talk] Making an API call outside a browser

Andy Robinson Andy_J_Robinson at blueyonder.co.uk
Sun Apr 9 09:25:55 BST 2006

Etienne Cherdlu wrote:
>Sent: 09 April 2006 08:32
>To: talk at openstreetmap.org
>Subject: Re: [OSM-talk] Making an API call outside a browser
>On 4/9/06, Erik Johansson <erjohan at gmail.com> wrote:
>> On 4/9/06, Andy Robinson <Andy_J_Robinson at blueyonder.co.uk> wrote:
>> > Is there an easy way to call the API (windows machine) without using a
>> > browser. Firefox is crashing on me when trying to view the source of a
>> > area. IE works ok but occasionally hits a problem too. Is there another
>> > simple way to call the API and return the content in a basic text
>editor (or
>> > similar).
>> Simple... Depends on what you are used to, forever destroyed by the
>> Command lin(m)ess of Unix I think CURL and WGet are easy things to
>> use. There are  two options for window users:
>> 1. download cygwin (www.cygwin.org)
>> 2. download exe files
>>    Wget: http://xoomer.virgilio.it/hherold/wget-1.10.2b.zip
>>    Curl: http://www.jeffp.net/downloads/libcurl-7.13.1-ssl-zlib-ares.zip
>> Use this to download:
>>    curl -u andy at mapRus.co.uk:4771 www.openstreetmap.org/api/0.3/node/1
>>    wget --http-passwd 4771 --http-user andy at mapRus.co.uk
>> www.openstreetmap.org/api/0.3/node/1
>> Of course if JOSM would save downloaded material separately, that
>> would be a very good tool.
>It can be done using JOSM.  First download the area you are interested
>in (you can type in a URL directly (eg
> Then type Ctrl-S and save as a .osm file.

Of course!, imi always has it figured ;-)

Thanks to all. I'll add all the suggestions to the wiki REST page when I get
a moment.

>talk mailing list
>talk at openstreetmap.org


More information about the talk mailing list