Mapserver rewrite

From Navit's Wiki
Revision as of 19:32, 20 November 2017 by Jkoan (talk | contribs)
Jump to: navigation, search


APIs

Old API (v1)

Example:

/api/map/?bbox=-180,-90,180,90&split=1048576000&part=0

New API (v2)

All URLs which are supported:

URL Description Example
/api/v2/areas Defaults to json output of all areas
/api/v2/areas/json Output of all known areas (countries)
/api/v2/areas/xml Output of all known areas as xml
/api/v2/areas/csv Output of all known areas as csv
/api/v2/download/bbox/:xmin/:xmax/:ymin/:ymax
/api/v2/download/bbox/:xmin/:xmax/:ymin/:ymax/:format
/api/v2/download/area/
/api/v2/download/area/id/:id/
/api/v2/download/area/id/:id/:format
/api/v2/download/area/name/:name
/api/v2/download/area/name/:name/:format
/api/v2/filesize/bbox/:xmin/:xmax/:ymin/:ymax/
/api/v2/filesize/bbox/:xmin/:xmax/:ymin/:ymax/:format

Parameter:

Parameter Value
:format bin | bin2
:xmin | :xmax Any value between -180 and 180
:ymin | :ymax Any value between -90 and 90