[OSM-dev] Re: [OSM-talk] Strange api behaviour

SteveC steve at asklater.com
Mon Mar 20 18:16:18 GMT 2006


fixed

If there were no segments in the bounding box then the SQL for finding
the 'ways' of those segments got confused.


* @ 20/03/06 06:06:29 PM openstreetmap at ostertag.name wrote:
> On Monday 20 March 2006 19:03, SteveC wrote:
> > * @ 20/03/06 06:00:54 PM openstreetmap at ostertag.name wrote:
> > > On Monday 20 March 2006 18:47, SteveC wrote:
> > > > * @ 17/03/06 06:28:27 AM openstreetmap at ostertag.name wrote:
> > > > > > > Unit tests for the current API, before writing the next version,
> > > > > > > would be a really good idea.
> > > > > >
> > > > > > Yes. Anyone volunteer to write a script which creates a node, move
> > > > > > it, delete it, add tags...  and bomb if something weird happens?
> > > > >
> > > > > Any prefered Language?
> > > >
> > > > ruby or
> > > >
> > > > java, perl, python, bash...
> > >
> > > I'll try in perl or bash as soon as i can get mappoints from osm again.
> >
> > er.. can;t you currently? Have I missed a bug?
> 
> Yesterday night It still didn't work.
> 
> 
> 
> 
> 
> Quote Mail to MailingList:
> 
> I also tried with 
>  http://www.eigenheimstrasse.de/josm/josm-snapshot-65.jar
> And I get a similar Error. (No wonder the request in tcpdump looks quite 
> similar)
> -
> 
> Joerg
> 
> 
> 
> On Sunday 19 March 2006 22:13, Joerg Ostertag wrote:
> > On Friday 17 March 2006 08:53, Joerg Ostertag wrote:
> > > Hi,
> > >
> > > I'm trying to browse or do a wget on
> > > http://www.openstreetmap.org/api/0.3/map?bbox=40.0,10.0,40.1,10.1
> > > and the get an:
> > >   500 Internal Server Error
> > >
> > > Do you have any Idea If I'm doing something wrong or if it's a temporary
> > > Server Issue?
> > >
> > > If I use the 0.2 API I get the following:
> > >
> > > http://www.openstreetmap.org/api/0.2/map?bbox=40,10,50,20
> > > Not Found
> > > The requested URL /ruby/api/0.2/map.rb was not found on this server.
> >
> > I tried to follow the instructions on
> >   http://wiki.openstreetmap.org/index.php/REST
> >
> > When the 0.2 API was actice it worked, but now it looks like i
> > can't get any data for any area with the map?bbox= method.
> >
> > With the 0.3 API on the Server active I try this request:
> > - SNIP -----------------------------------------------------------
> > wget
> > 'http://www.openstreetmap.org/api/0.3/map?bbox=41.1111,10.1111,42.1112,11.1
> >112'
> > http://www.openstreetmap.org/api/0.3/map?bbox=41.1111,10.1111,42.1112,11.11
> >12: 22:07:34 FEHLER 500: Internal Server Error.
> > - SNIP -----------------------------------------------------------
> >
> >
> > Trying another request method works:
> > - SNIP -----------------------------------------------------------
> > wget -O - 'http://www.openstreetmap.org/api/0.3/segment/113991' | gzip -dc
> > <?xml version="1.0"?>
> > <osm version="0.3" generator="OpenStreetMap server">
> >   <segment id="113991" from="155337" to="155328">
> >     <tag k="name" v="Camden Road"/>
> >   </segment>
> > </osm>
> > - SNIP -----------------------------------------------------------
> >
> > But I think to get all Street Data for an area the best method
> > seems to be map?bbox=. So any hint will be greatly appreciated.
> >
> > -
> >
> > Joerg
> >
> > _______________________________________________
> > talk mailing list
> > talk at openstreetmap.org
> > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
> 
> -- 
> http://www.ostertag.name/
> http://www.openbc.com/go/invita/Joerg_Ostertag
> 
> -- 
> http://www.ostertag.name/
> 
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/




More information about the dev mailing list