cancel
Showing results for 
Search instead for 
Did you mean: 

Calling google maps from powerbuilder

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

former_member190719
Active Contributor
0 Kudos

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).