K
K
kentos2018-09-13 01:20:45
JavaScript
kentos, 2018-09-13 01:20:45

How to get geodata from TFL?

Hello, I'm just starting to deal with React, I received the data

const Http = new XMLHttpRequest();
const url='https://api-argon.tfl.gov.uk/BikePoint';
Http.open("GET", url);
Http.send();

Http.onreadystatechange=function() {
  if(this.readyState==4 && this.status==200){
    console.log(Http.responseText)
  }
}

The data comes from the Api,
ChildrenUrls":[],"lat":51.529163,"lon":-0.10997
How can I make it better to display all those points on the map, and how to get all the points in general? I thought everything in the object, but I don't know how to load into this object

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question