I wrote what followed by the example code, everything works now but since I updated the library the result is not correct, here you find the json for the coordinates of an address, but the google map library gives me something else!
B4X:
Waiting for debugger to connect...
Program started.
{
"results" : [
{
"address_components" : [
{
"long_name" : "2",
"short_name" : "2",
"types" : [ "street_number" ]
},
{
"long_name" : "Via dell'Industria",
"short_name" : "Via dell'Industria",
"types" : [ "route" ]
},
{
"long_name" : "Villaggio Brollo",
"short_name" : "Villaggio Brollo",
"types" : [ "locality", "political" ]
},
{
"long_name" : "Solaro",
"short_name" : "Solaro",
"types" : [ "administrative_area_level_3", "political" ]
},
{
"long_name" : "Città Metropolitana di Milano",
"short_name" : "MI",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "Lombardia",
"short_name" : "Lombardia",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "Italy",
"short_name" : "IT",
"types" : [ "country", "political" ]
},
{
"long_name" : "20020",
"short_name" : "20020",
"types" : [ "postal_code" ]
}
],
"formatted_address" : "Via dell'Industria, 2, 20020 Villaggio Brollo MI, Italy",
"geometry" : {
"location" : {
"lat" : 45.6216605,
"lng" : 9.107771
},
"location_type" : "RANGE_INTERPOLATED",
"viewport" : {
"northeast" : {
"lat" : 45.6230094802915,
"lng" : 9.109119980291501
},
"southwest" : {
"lat" : 45.6203115197085,
"lng" : 9.106422019708496
}
}
},
"place_id" : "EjdWaWEgZGVsbCdJbmR1c3RyaWEsIDIsIDIwMDIwIFZpbGxhZ2dpbyBCcm9sbG8gTUksIEl0YWx5IhoSGAoUChIJ9eyzy3CWhkcR0CLs8ecVbtsQAg",
"types" : [ "street_address" ]
}
],
"status" : "OK"
}
Alert: Hide directions called
Alert: loadMapLibrary done
Alert: initMap
mapLibraryLoaded!
Alert: !!!mapLibraryLoaded!!!