Hi,
In a program I have to show a Bing map in an ImageView with an address as starting point
I try to get the coordinates as follows:
This works more or less: as feedback I get some 1 K of data which includes the coordinates. This information is printed in the WEBView. I expected it in WEBReturn. The problem is that I have no idea how I can approach that data to extract the coordinates. Probably very simple, if you know it.
Please some help,
Harry
In a program I have to show a Bing map in an ImageView with an address as starting point
I try to get the coordinates as follows:
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("ConnectionForm")
WEBView1.Initialize("WEBReturn")
Activity.AddView(WEBView1, 0dip, 0dip, 540dip, 960dip)
BingMapsKey="vvvvvvvvvvvvvvvvvvvvvvvv"
URLStr1="http://dev.virtualearth.net/REST/v1/Locations?countryRegion=nl&locality=" & Main.city & "&addressLine=" & Main.Street & "&key=" & BingMapsKey
'URLStr2 ="http://dev.virtualearth.net/REST/v1/Imagery/Map/" & MapType & "/" & POI.ActiveLat & "," & POI.ActiveLon & "/" & ZoomLevel & "?pp= " & POI.ActiveLat & "," & POI.ActiveLon & ";;1" & "&mapSize=360,640&dcl=1&key="& BingMapsKey
WEBView1.LoadUrl(URLStr1)
End Sub
This works more or less: as feedback I get some 1 K of data which includes the coordinates. This information is printed in the WEBView. I expected it in WEBReturn. The problem is that I have no idea how I can approach that data to extract the coordinates. Probably very simple, if you know it.
Please some help,
Harry
Last edited: