If you have the address, you can get the longitude and latitude coordinates by Geocoding, according to the documentation of API of Geocoding.
This example demonstrates the use of the JSON API:
https://maps.googleapis.com/maps/api/geocode/json?address=Avenida%20Paulista%201000,%20S%C3%A3o%20Paulo
This is the response to the request:
{
"results" : [
{
"address_components" : [
{
"long_name" : "1000",
"short_name" : "1000",
"types" : [ "street_number" ]
},
{
"long_name" : "Avenida Paulista",
"short_name" : "Av. Paulista",
"types" : [ "route" ]
},
{
"long_name" : "Bela Vista",
"short_name" : "Bela Vista",
"types" : [ "political", "sublocality", "sublocality_level_1" ]
},
{
"long_name" : "São Paulo",
"short_name" : "São Paulo",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "São Paulo",
"short_name" : "SP",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "Brasil",
"short_name" : "BR",
"types" : [ "country", "political" ]
},
{
"long_name" : "01310-100",
"short_name" : "01310-100",
"types" : [ "postal_code" ]
}
],
"formatted_address" : "Av. Paulista, 1000 - Bela Vista, São Paulo - SP, 01310-100, Brasil",
"geometry" : {
"location" : {
"lat" : -23.5647577,
"lng" : -46.6518495
},
"location_type" : "ROOFTOP",
"viewport" : {
"northeast" : {
"lat" : -23.56340871970849,
"lng" : -46.65050051970849
},
"southwest" : {
"lat" : -23.5661066802915,
"lng" : -46.65319848029149
}
}
},
"place_id" : "ChIJfwcg7cdZzpQR-FIlwhOEYxI",
"types" : [ "street_address" ]
}
],
"status" : "OK"
}
The specific section below lists the latitude and longitude coordinates for the address the type ROOFTOP indicates that the returned result is a precise geographic code for which there is location information with address accuracy. These are the values that must be passed.
"geometry" : {
"location" : {
"lat" : -23.5647577,
"lng" : -46.6518495
},
"location_type" : "ROOFTOP",
Murillo, just pass the coordinates here geo: , '_system' that would work? I did some tests comparing in the browser googlemaps and ends up going wrong, would it be something like 'geo: 0,0 ',' 0,0 ? Thanks
– user66665