Android Question Corner of two streets lookup with Geocode

rossco_pb

Member
Licensed User
Longtime User
Hi, am doing a small app using latest Google maps and Geocode libraries (2.1) and was wondering if there is a way to search for the intersection (corner) of two streets. If I do a search of say "corner wood st and robert rd mangawhai" in google maps it returns with a marker at that intersection. If I send the same string thru Geocode the search fails. Looking up an address on either street individually thru geocode works fine and without a number goes to the centre of the street.

Has anyone else managed to make this work? Assuming it a supported function that is...

Cheers
 

rossco_pb

Member
Licensed User
Longtime User
Just FYI, initial tests appear to indicate this type of search will work using httpjob as opposed to the Geocode lib, fingers crossed. Note the "@" in the Address search string designating the intersection of...

B4X:
    Dim GetAddressJob As HttpJob
    Dim i As Int
   
    Address = "?address=robert+rd+@+wood+st+mangawhai"
    GetAddressJob.Initialize("GetAddress", Me)
    GetAddressJob.Download("https://maps.googleapis.com/maps/api/geocode/json" & Address)
 
Upvote 0
Top