OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2019-05-25 21:55:44

GerdP
Member
Registered: 2015-12-18
Posts: 827

[Solved] API returns wrong results

Example:
https://www.openstreetmap.org/api/0.6/w … 17/history
returns

<osm version="0.6" generator="CGImap 0.7.0 (10448 thorn-02.openstreetmap.org)"
copyright="OpenStreetMap and contributors" attribution="http://www.openstreetmap.org/copyright"
license="http://opendatacommons.org/licenses/odbl/1-0/">
  <way id="158601617" visible="true" version="1" changeset="11230310"
  timestamp="2012-04-08T21:03:27Z" user="adjuva" uid="92274">
    <nd ref="1707666203" />
    <nd ref="1707666197" />
    <nd ref="1707666196" />
    <nd ref="1707666193" />
    <nd ref="1707666198" />
    <nd ref="1707666203" />
    <tag k="description" v="HVDC converter station of the NorNet cable to norway." />
    <tag k="fenced" v="yes" />
    <tag k="operator" v="TenneT" />
    <tag k="power" v="sub_station" />
    <tag k="description" v="HVDC converter station of the NorNet cable to norway." />
    <tag k="fenced" v="yes" />
    <tag k="frequency" v="0;50" />
    <tag k="operator" v="TenneT" />
    <tag k="power" v="sub_station" />
    <tag k="description" v="HVDC converter station of the NorNet cable to norway." />
    <tag k="fenced" v="yes" />
...

Note the repeated tags.

Last edited by GerdP (2019-05-26 08:46:23)

Offline

#2 2019-05-25 23:41:43

SomeoneElse
Member
Registered: 2010-10-13
Posts: 1,134

Re: [Solved] API returns wrong results

No idea - you'll have to ask somewhere that people involved in development are likely to read.

There is API development going on at the moment - see https://github.com/openstreetmap/operat … -495910497 etc.

FWIW I've seen the same effect before - see https://master.apis.dev.openstreetmap.o … 84/history .

Offline

#3 2019-05-26 08:45:54

GerdP
Member
Registered: 2015-12-18
Posts: 827

Re: [Solved] API returns wrong results

Seems the API problem was solved for now by switching back from "write backend" to "readonly backend"

Offline

#4 2019-05-26 10:36:42

mmd
Member
Registered: 2010-11-06
Posts: 1,771

Re: [Solved] API returns wrong results

fyi: Fix for the write backend is underway in https://github.com/zerebubuth/openstree … p/pull/183

Last edited by mmd (2019-05-26 10:36:54)

Offline

Board footer

Powered by FluxBB