Web Services (beta version)

Last update: February 10 2009

Related to mashups

Thoses web services are part of the back-office of my mashups.

INeedABike_bike screenshot I Need A Bike: closest stations with available Bikes
Parameters: city: as 'paris' (Velib') or 'lyon' (Vélo'v) 'marseille' (Le Vélo').
lat: latitude from which you search stations with bike.
lng: longitude from which you search stations with bike.
operation_id: as 'FINDCLOSESTBIKE'
Output: List of the 5 closest stations with available bikes as XML.
Example: http://ineedabike.ws.gmapify.fr/?operation_id=FINDCLOSESTBIKE&city=paris&lat=48.0&lng=2.0
 
INeedABike_slot screenshot I Need A Bike: closest stations with free slots
Parameters: city: as 'paris' (Velib') or 'lyon' (Vélo'v) 'marseille' (Le Vélo').
lat: latitude from which you search stations with slot.
lng: longitude from which you search stations with slot.
operation_id: as 'FINDCLOSESTSLOT'
Output: List of the 5 closest stations with free slots as XML.
Example: http://ineedabike.ws.gmapify.fr/?operation_id=FINDCLOSESTSLOT&city=paris&lat=48.0&lng=2.0
 
ParisParis_all screenshot Paris! Paris!: all POI of a layer
Parameters: layer_id: id of the layer. You can all available id with request: http://paris.ws.gmapify.fr/?operation_id=GETLAYERS
operation_id: as 'GETLAYER' or 'GETIMAGE'
Output: List of all POI as XML.
Example: http://paris.ws.gmapify.fr/?operation_id=GETLAYER&layer_id=89
http://paris.ws.gmapify.fr/?operation_id=GETIMAGE&layer_id=89
 
ParisParis_closest screenshot Paris! Paris!: closest POIs
Parameters: layer_id: id of the layer. You can all available id with request: http://paris.ws.gmapify.fr/?operation_id=GETLAYERS
operation_id: as 'FINDCLOSEST'
lat: latitude from which you search POI.
lng: longitude from which you search POI.
limit: number of POI to return
Output: List of the closest POI ordered by distance as XML.
Example: http://paris.ws.gmapify.fr/?operation_id=FINDCLOSEST&layer_id=89&lat=2.0&lng=48.0&limit=2
 

Administrative areas

Polyline coordinates have been changed to encoded strings in web services below. See this snippet of javascript code to know how to use those encoded polylines in your maps.

FRCommunePolyline screenshot French communes (kind of cities)
Parameters: commune: as INSEE code or name, optional departement as INSEE code.
Output: FR cities as Google Maps encoded polylines.
Example: http://commune.ws.gmapify.fr/?commune=caen (or commune=14118 or commune=caen&departement=14).
 
FRCommunePolyline_polygon screenshot French communes filtered by areas    (Used by Road Trip, )
Parameters: poly: as array of coordinates (lat1,lng1,lat2,lng2,...). Several arrays are separated with the ';' character.
mode: as 'polygon'.
Output: FR cities as Google Maps encoded polylines intersecting, being contained or containing at least one input polygons.
Example: All communes straddled by Charles de Gaulle Airport:
http://commune.ws.gmapify.fr/?mode=polygon&poly=48.99013,2.55449,48.99238,2.61887,...
 
FRCommunePolyline_polyline screenshot French communes filtered by polylines    (Used by Road Trip, )
Parameters: poly: as array of coordinates (lat1,lng1,lat2,lng2,...). Several arrays are separated with the ';' character.
mode: as 'polyline'.
Output: FR cities as Google Maps encoded polylines containing at least one vertex of input polylines.
Example: all communes served by Paris Métro line 8 or Paris Métro line 13:
http://commune.ws.gmapify.fr/?mode=polyline&poly=48.83523,2.27777,48.83865,2.28185...
 
FRCommunePolyline_ByDepartement screenshot French communes filtered by departement
Parameters: departement: as INSEE code (see French departements web service to get it).
Output: FR cities as Google Maps encoded polylines.
Example: http://commune.ws.gmapify.fr/?departement=92 (Haut-de-Seine).
 
FRDepartementPolyline screenshot French departements (kind of US counties)    (Used by Road Trip, GNewsVision, )
Parameters: departement: as INSEE code, ISO code, NUTS code or name.
output: json or xml. By default output is xml formatted.
Output: FR departements as Google Maps encoded polylines.
Example: http://departement.ws.gmapify.fr/?departement=75&output=xml (or departement=paris or departement=FR-75 or departement=FR101).

All departements with ?departement=all. See on map.
 
FRDepartementPolyline_ByRegion screenshot French departements filtered by region    (Used by Road Trip, )
Parameters: region: as INSEE code (see French regions web service to get it).
output: json or xml. By default output is xml formatted.
Output: FR departements as Google Maps encoded polylines.
Example: http://departement.ws.gmapify.fr/?region=42&output=xml (Alsace).
 
FRRegionPolyline screenshot French regions (kind of US states)    (Used by Road Trip, )
Parameters: region: as INSEE code, ISO code, NUTS code or name.
output: json or xml. By default output is xml formatted.
Output: FR regions as Google Maps encoded polylines.
Example: http://region.ws.gmapify.fr/?region=alsace&output=xml (or region=42 or region=FR-A or region=FR42).

All regions with ?region=all. See on map.
 
USStatePolyline screenshot US states    (Used by GNewsVision, )
Parameters: state: as FIPS numeric, FIPS alpha or name.
output: json or xml. By default output is xml formatted.
Output: US states as Google Maps encoded polylines.
Example: http://usstate.ws.gmapify.fr/Projects/?state=fl&output=xml (or state=florida or state=12).

All states with ?state=all. See on map.
 
countryPolyline screenshot Countries    (Used by Mapified Indices, Mapified RSS, Overflown Countries, Geo best-of YouTube, GNewsVision, )
Parameters: country: as ISO 3166-1 alpha-2, ISO 3166-1 alpha-3, ISO 3166-1 numeric or name. Several countries with same kind of parameters can be input separated with the ';' character.
continent: as 'AF', 'AS', 'EU', 'NA', 'OC' or 'SA'.
output: json or xml. By default output is xml formatted.
Output: Countries as Google Maps encoded polylines.
Example: http://country.ws.gmapify.fr/?country=japan,france&output=xml (or country=jp,fr or country=jpn,fra or country=392,250).
http://country.ws.gmapify.fr/?continent=NA&output=xml


All countries with ?country=all. See on map.