I'm new to programming, and I'm developing an app from which I look for a list of taxis closer to my location through a website. But I'm having a hard time doing this.
List the active taxi drivers within a geographic rectangle Endpoint:
GET link
Parameters:
-
sw: South end, west end of the rectangle, in the "latitude, longitude" format. Ex: -23.612474, - 46.702746
-
ne: North extreme point, east end of the rectangle, in the format "latitude, longitude". Ex: -23.589548, - 46.673392
Example
Request:
GET link
I can only create an endpoint, but I do not know how to pull this service and put them on the map, for example:
var person = MapModule.createAnnotation({
latitude: -23.474891,
longitude: -46.526756,
title: 'Você',
subtitle: 'São Paulo, SP',
pincolor: MapModule.ANNOTATION_RED,
image:"/ui/images/buscador.png",
});
Could anyone help me with the line of codes for me to get the latidude and longitude of these taxis in this geographic rectangle ??? Thanks guys