OlpcMAP/data-api

From OLPC
< OlpcMAP
Revision as of 16:41, 2 December 2010 by 128.237.225.26 (talk) (Created page with '=Request URLs= ==Request by Distance from Point== Load points a given distance from a latitude,longitude center with the llcenter variable: http://olpcMAP.net/json?''llcenter=…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request URLs

Request by Distance from Point

Load points a given distance from a latitude,longitude center with the llcenter variable:

http://olpcMAP.net/json?llcenter=42.356261,-71.05957&km-distance=30

Using Yahoo Maps + Where On Earth ID, you can set the center to be almost any placename:

http://olpcMAP.net/json?center=Boston,MA&km-distance=30

Using a map marker as the central point:

http://olpcMAP.net/json?id=336003&km-distance=600

The URL above loads points within 600 kilometres of the map marker at http://olpcMAP.net?id=336003

Request by Area

Load points within a box (use format north,east,south,west): http://olpcMAP.net/json?llregion=20.38154,-69.579162,17.555734,-74.98993

Using Yahoo Maps + Where On Earth ID, you can set the region to almost any placename:

http://olpcMAP.net/json?region=Mongolia

Request Formats

Data is in JSON by default.

Get JavaScript which you can add via <script src="SCRIPT"></script> by adding &format=js


Data Model

Feature / Search Requests