Mapserver rewrite

From Navit's Wiki
Revision as of 18:54, 20 November 2017 by Jkoan (talk | contribs) (Created page with " {{Warning| WIP }} {{Warning|This feature does not exist in the current Mapserver }} == APIs == === Old API (v1) === Example: <pre> /api/map/?bbox=-180,-90,180,90&split=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


APIs

Old API (v1)

Example:

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

New API (v2)

All

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