Difference between revisions of "Mapserver rewrite"

From Navit's Wiki
Jump to: navigation, search
(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=...")
 
m
Line 14: Line 14:
  
 
=== New API (v2) ===
 
=== New API (v2) ===
All
+
All URLs which are supported:
 
{| class="wikitable"
 
{| class="wikitable"
 
|URL||Description|| Example
 
|URL||Description|| Example

Revision as of 19:32, 20 November 2017


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