Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Google or Microsoft maps from Basic4PPC

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2010, 04:25 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default Google or Microsoft maps from Basic4PPC

Hallo,

In a Basic4PPC program I have a number of coordinates. Now I am looking for a possibility on my PDA to access internet from my program in order to get a map for a pair of coordinates, without further user intervention.

The map may come from Google or from Microsoft and may appear in an internet window or on a form in my application.

I studied the HTTP lib, but I don't see a solution. Does somebody haved more knowledge on this subject?

Harry
Reply With Quote
  #2 (permalink)  
Old 03-16-2010, 06:47 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I have installed Google Maps on my PPC. Possibly as a result of this (I'm not certain) if I click on a KML file in File Explorer then Google Maps starts up and shows my KML file. (I have written a program which writes paths, originally derived from a GPS, as KML files.)

So my guess would be that if you call Google Maps with a command-line argument of a KML file name then you might get what you want.

You are welcome to one or more of my KML files if you want to try. They are based in parts of the Mediterranean.

Mike.
Reply With Quote
  #3 (permalink)  
Old 03-17-2010, 08:05 AM
Junior Member
 
Join Date: Sep 2009
Posts: 47
Default

Use the web browser control to open a local htm file with coordinate. The html file has to follow the google map api.
Reply With Quote
  #4 (permalink)  
Old 03-17-2010, 08:28 AM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Post

Hello Harry,

try to take a look at my old project: db2000 GLIP.
(This project uses the Microsoft Virtual Heart web service)
Reply With Quote
  #5 (permalink)  
Old 03-17-2010, 06:32 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Hallo mlcoon,

Thanks for the reply. Could you send me a sample .kml file? Please!

Hallo champpc,

Also from you a sample or some more explanation would be welcome.

Hallo maXim,

May be that the information you are referring to is usefull. However my italian is too poor. If the other solutions do not work, I will try to get it translated by my computer.

Regards,

Harry
Reply With Quote
  #6 (permalink)  
Old 03-18-2010, 07:20 AM
Junior Member
 
Join Date: Sep 2009
Posts: 47
Default

You can download the web browser zip file & use the sample "webbrowserdevice" to navigate, e.g. to the google static map sample site (http://maps.google.com/maps/api/stat...0&sensor=false), it will display without any problem.

Last edited by chanppc : 03-18-2010 at 08:03 AM.
Reply With Quote
  #7 (permalink)  
Old 03-18-2010, 09:00 AM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by HARRY View Post
Hallo mjcoon, could you send me a sample .kml file? Please!
Certainly; Since I've chosen a little one I'll put it in this thread in case it is any use to anyone else...

Mike.
Attached Files
File Type: zip 2009-10-24.kml.zip (3.7 KB, 24 views)
Reply With Quote
  #8 (permalink)  
Old 03-18-2010, 10:46 AM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Hallo chanppc,

I made quite some progress. This is a very simple solution. One more question. Do you know of parameters to influence the display of the map? I would like to see just the map with scrolling and zooming possibilities. Now, half of the screen is covered by useless information. What does e.g. sensor=false mean?

Regards,

Harry
Reply With Quote
  #9 (permalink)  
Old 03-19-2010, 02:37 AM
Junior Member
 
Join Date: Sep 2009
Posts: 47
Default

Do check out the google map api website
Reply With Quote
  #10 (permalink)  
Old 03-19-2010, 05:17 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by mjcoon View Post
So my guess would be that if you call Google Maps with a command-line argument of a KML file name then you might get what you want.
I wasn't sure whether this solution was not satisfactory for some reason or whether it just didn't work.

It might be useful for me so I experimented until it works. What works for me is:
Code:
 Shell("\SD-MMCard\Program Files\GoogleMaps\GoogleMaps.exe""-KML_FILE " & Chr(34) & KMLfilesName & Chr(34))
Mike.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scaled Maps klaus Share Your Creations 46 05-27-2011 12:25 PM
Google maps question JB7TS Questions (Windows Mobile) 1 11-10-2009 01:37 PM
Calling Google Maps bish0p Questions (Windows Mobile) 2 11-25-2008 02:07 PM
Display maps klaus Share Your Creations 4 11-11-2008 05:05 PM
Google Maps trckashyap Questions (Windows Mobile) 0 10-31-2008 06:34 AM


All times are GMT. The time now is 10:47 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0