X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/513bf485f20f0308c7f25c96717190a354bf0ec3..8e1d4818aca13a7a0a992af7ba8c5b9ff47f65ed:/docs/api/Lookup.md diff --git a/docs/api/Lookup.md b/docs/api/Lookup.md index 0f13df45..93729262 100644 --- a/docs/api/Lookup.md +++ b/docs/api/Lookup.md @@ -19,13 +19,13 @@ Additional optional parameters are explained below. ### Output format -* `format=[html|xml|json|jsonv2|geojson|geocodejson]` +* `format=[xml|json|jsonv2|geojson|geocodejson]` -See below for details on each format. (Default: xml) +See [Place Output Formats](Output.md) for details on each format. (Default: xml) * `json_callback=` -Wrap json output in a callback function (JSONP) i.e. `()`. +Wrap JSON output in a callback function (JSONP) i.e. `()`. Only has an effect for JSON output formats. ### Output details @@ -56,6 +56,21 @@ specified in the "Accept-Language" HTTP header. Either use a standard RFC2616 accept-language string or a simple comma-separated list of language codes. +### Polygon output + +* `polygon_geojson=1` +* `polygon_kml=1` +* `polygon_svg=1` +* `polygon_text=1` + +Output geometry of results as a GeoJSON, KML, SVG or WKT. Only one of these +options can be used at a time. (Default: 0) + +* `polygon_threshold=0.0` + +Return a simplified version of the output geometry. The parameter is the +tolerance in degrees with which the geometry may differ from the original +geometry. Topology is preserved in the result. (Default: 0.0) ### Other