on 03-01-2013 4:51 PM
I want to call google maps from my PB application (I am using 12.5) but besides just calling the url for google maps I want to actually call the url with the source and destination address so directions are listed in the browser, I am not sure if this question has been asked and answered before I try to do some serach but couldn't come up with anything.
I am trying to figue this out and I think I need to refine my question, I was able to call google maps in my browser by following link:
https://maps.google.com/maps?saddr=333-happy dr,city name,state,zip&daddr=southfileld&hl=en
and my app opens the browser and lists the directions but off course the url is static and in order to use it for different addresses I will have to generate dynamic url, is this possible in PB? basically value for saddr and daddr will be variables and not the static values like I have in my url link above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Javed;
How about using the iNet object?
Have a look at the HyperlinkToURL command ....
ie:
iNet lo_inet
String ls_url
lo_inet = Create iNet
ls_url = "
https://maps.google.com/maps?saddr=333-happy dr,city name,state,zip&daddr=southfileld&hl=en"
lo_net.HyperlinkToURL ( ls_url )
Regards ... Chris
Chris: as always thank you very much and your answer was right on the money. However there is onething that i must add all spaces in your address must be stuffed with %20 for google maps to work correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There's a demo of doing this on the Sybase Codexchange site. If's from a demo that was done during the PowerBuilder 11 RoadShow (including a TechWave general session).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.