< Osmose < api

Osmose/api/0.3

API 0.3 is available at: http://osmose.openstreetmap.fr/api/0.3/. Generally the API returns JSON.

Main API documentation point at http://osmose.openstreetmap.fr/api/docs

Settings

Details of parameters used by the query on API. All settings are not available for all queries.

Example : http://osmose.openstreetmap.fr/api/0.3/issues?item=1070&bbox=-74.3788,18.3852,-73.8377,18.6807

ParamTypeDefaultComment
latfloatLatitude.
lonfloatLongitude.
bboxlon1,lat1,lon2,lat2Restriction area.
item1000,1010,1020,2xxxAllReturned items list, a number followed by "xxx" for complet category. See the list at http://osmose.openstreetmap.fr/fr/api/0.2/meta/items
sourceintegerNumber of the source, see the source list at http://osmose.openstreetmap.fr/fr/control/update
classintegerClasses of item, one or many classes separated with commas, a class is a sub part of an item. Make sense only with a unique item.
usernameOSM username, returns issues for objects when user is the last editor.
levellist of 1, 2 or 31,2,3Level of issues. List of number 1, 2 and/or 3 in this order.
zoominteger10Zoom level
limitinteger100Returned issues, 500 max.
countryIssues for an area. The wildcard "*" is allowed as part of the parameter, eg "france*" for all regions at once. See the list at http://osmose.openstreetmap.fr/api/0.3/countries
useDevItemtrue, false or allfalseReturns issues only for items that are not active, not active are dev or buggy items.
statusopen, done, falseopenIssues status, "open", "done" for issues reported as corrected and "false" for issues repported as false positive.
start_datedateIssues generated after this date. For statistics begins on this date. Date format "Y[-m[-d]]".
end_datedateIssues generated before thit date. For statistics ended on this date. Date format "Y[-m[-d]]".
tagst1,t2,t3Filter issues on that tags list via their items. Tags are topic of analysis, not OSM tags. The list of tags http://osmose.openstreetmap.fr/fr/api/0.2/meta/tags
fixablesonline or josmReturns issues with proposed correction usable with the Osmose online editor or with JOSM.

meta

This part of the API does not return issue data directly, but meta-data particularly around the different groupings and classifications of issues. The text snippets (which may be useful to display within a client application) can be returned in various languages. It supports the langs parameter which has the same semantics as http header accept-language. langs can also have the value "auto" to let the server use the http header accept-language directly.

URLParamDescription
/countries List of supported regions Osmose.
/items langs List of available items with translations.
/items/<item:int>/class/<classs:int> langs Get only detail of one class of an item. Example: http://osmose.openstreetmap.fr/api/0.3/items/1/class/1?langs=auto
/tags List of tags to filter on.

Issues

The mainpart of the API, allows queries for issues.

URL Param Description
/issue/<id:int> langs Fetch issue data
This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.