Difference between revisions of "OlpcMAP/data-api"

From OLPC
Jump to: navigation, search
(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=…')
(No difference)

Revision as of 12:41, 2 December 2010

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