Skip to content

Instantly share code, notes, and snippets.

@byaruhaf
Forked from srdelarosa/OpenTripMap.txt
Created October 5, 2022 03:24
Show Gist options
  • Save byaruhaf/c0b3cc6f07bb68694418d9f9d74ee474 to your computer and use it in GitHub Desktop.
Save byaruhaf/c0b3cc6f07bb68694418d9f9d74ee474 to your computer and use it in GitHub Desktop.
https://api.opentripmap.com/0.1/en/places/geoname?name=Lima&apikey=5ae2e3f221c38a28845f05b66b2ebd0c0a4a7428f0803525b45f11d8
{
"name": "lima",
"country": "PE",
"lat": -12.04318,
"lon": -77.02824,
"population": 7737002,
"timezone": "America/Lima",
"status": "OK"
}
https://api.opentripmap.com/0.1/en/places/radius?radius=1000&lon=-77.02824&lat=-12.0431&rate=2&format=count&limit=5&apikey=5ae2e3f221c38a28845f05b66b2ebd0c0a4a7428f0803525b45f11d8
{
"count": 58
}
https://api.opentripmap.com/0.1/en/places/radius?radius=1000&lon=-77.02824&lat=-12.0431&rate=3&format=json&limit=5&apikey=5ae2e3f221c38a28845f05b66b2ebd0c0a4a7428f0803525b45f11d8
[
{
"xid": "N2706089579",
"name": "Casa de la Literatura Peruana",
"dist": 155.95540813,
"rate": 7,
"osm": "node/2706089579",
"wikidata": "Q5201438",
"kinds": "industrial_facilities,railway_stations,museums,cultural,interesting_places,other_museums",
"point": {
"lon": -77.028755,
"lat": -12.044415
}
]
https://api.opentripmap.com/0.1/en/places/xid/N2706089579?apikey=5ae2e3f221c38a28845f05b66b2ebd0c0a4a7428f0803525b45f11d8
{
"xid": "N2706089579",
"name": "Casa de la Literatura Peruana",
"address": {
"city": "Lima",
"road": "Áncash",
"house": "Casa de la Literatura Peruana",
"state": "Lima",
"region": "Lima",
"suburb": "Santa Beatriz",
"country": "Peru",
"postcode": "15001",
"country_code": "pe",
"house_number": "207",
"neighbourhood": "Connjunto residencial Martinetti"
},
"rate": "3h",
"osm": "node/2706089579",
"wikidata": "Q5201438",
"kinds": "industrial_facilities,railway_stations,museums,cultural,interesting_places,other_museums",
"url": "http://www.casadelaliteratura.gob.pe/",
"sources": {
"geometry": "osm",
"attributes": [
"osm",
"wikidata"
]
},
"otm": "https://opentripmap.com/en/card/N2706089579",
"wikipedia": "https://en.wikipedia.org/wiki/Desamparados%20station",
"image": "https://commons.wikimedia.org/wiki/File:Estaci%C3%B3n_de_Desamparados_o_Casa_de_la_Literatura_Peruana.jpg",
"preview": {
"source": "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Estaci%C3%B3n_de_Desamparados_o_Casa_de_la_Literatura_Peruana.jpg/400px-Estaci%C3%B3n_de_Desamparados_o_Casa_de_la_Literatura_Peruana.jpg",
"height": 266,
"width": 400
},
"wikipedia_extracts": {
"title": "en:Desamparados station",
"text": "The Desamparados station (Spanish: Estación de Desamparados) is a railway station in Lima, Peru. It is situated on the left margin of the Rímac River, next to the Government Palace. The station was named after the church of Nuestra Señora de los Desamparados. The project began in 1890 by the Peruvian Corporation and three years later the Lima–La Oroya route was inaugurated. The line became known as the Ferrocarril Central Andino",
"html": "<p>The <b>Desamparados station</b> (Spanish: <i lang=\"es\">Estación de Desamparados</i>) is a railway station in Lima, Peru. It is situated on the left margin of the Rímac River, next to the Government Palace. The station was named after the church of <i>Nuestra Señora de los Desamparados</i>. The project began in 1890 by the Peruvian Corporation and three years later the Lima–La Oroya route was inaugurated. The line became known as the Ferrocarril Central Andino</p>"
},
"point": {
"lon": -77.028755,
"lat": -12.044415
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment