surinder singh


Hi all

I don't know either this is a technical post by me or not.

But I want to know that

Is there any way to retrieve map from mapqest.com website from foxpro.

Currently I am calling mapquest webpage to display the map by passing address as parameter.

But I want to retrieve the required map from mapquest (if possible) & want to show map on my vfp form.

I am using this code to call mapquest webpage.

DECLARE INTEGER ShellExecute IN shell32.dll ;

INTEGER hndWin, ;

STRING cAction, ;

STRING cFileName, ;

STRING cParams, ;

STRING cDir, ;

INTEGER nShowWin

lcAddress = "7850 west monroe rd"

lcCity = "houston"

lcState = 'tx'

lcCntry = "us"

lcZip = ""

lcLink = "http://www.mapquest.com/maps/map.adp searchtype=address"

lcGo = ALLTRIM(lcLink) + '&country='+ALLTRIM(lcCntry) +'&formtype=address&address='+lcAddress+'&city='+lcCity+'&state='+lcState

=ShellExecute(0,"open",lcgo,"","",1)

Thanks & Regards

Surinder Singh





Re: How to retreive map from mapquest.com

Levi.S


Look at this, please
You would rewrite

lcAddress = "7850 west monroe rd"

as

lcAddress = "7850+west+monroe+rd"







Re: How to retreive map from mapquest.com

surinder singh

Hi Levi

I am doing this very well but I just want to know that can I get/download that map so that I can show that map on my vfp form.

Thanks







Re: How to retreive map from mapquest.com

dni

You want to just open a image file in vfp or you like to have a interactive map (a new window with browser) in vfp