NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Garousi
Posts: 39
0 Kudos
Accepted Solution

i want use google map api in VI . i tried so mutch to do it.i used google earth plugin and google static map but i need only google map api .

Hello everybody

could enybody help me to solve my problem in using google map API ?

i build  FMS (Fleet Managment System ) . i used google earth plugin . but i want use google map APi .

M.Garousi
Knight of NI
RavensFan
Posts: 13,225
0 Kudos

Re: Google map API

I'm sure somebody may be able to help you.

 

But first you are going to have to tell us what your problem is.

 

PS.  The word "I" is always capitalized.

Member
Garousi
Posts: 39
0 Kudos

Re: Google map API

Tanks for reply

i want show car's position count in one vi with google map , for this i use WebBrowser and load HTML page . but when car's position changed i must use google map API in this page . I can't use any google map API or java script in vi .

M.Garousi
Member
MiChr
Posts: 62
0 Kudos

Re: Google map API

[ Edited ]

Dear Garousi,

 

This might be helpful for you.

 

Google Maps in LabVIEW

http://decibel.ni.com/content/docs/DOC-7983

 

 Using Google Maps in LabVIEW


Other questions? Feel free to post here...

 

Regards

Chris

Member
Garousi
Posts: 39
0 Kudos

Re: Google map API

Dear Chris

thanks for your help

but in first example " Google Maps in LabVIEW " used api in url of page . this example work with google static map.

if we used google map API . we can zoom and unzoom with scroll or you can pan map without change parameters in labview . in this example for zoom or unzomm or pan we must change url .

but if use google map api for any action we don't need change url .

and in secend example  "Using Google Maps in LabVIEW" we just get pic

 

Thanks

 

M.Garousi
Member
daniel_huy
Posts: 6
0 Kudos

Re: Google map API

Hi Garousi,

 

I'm facing the exact issue as you are having. I beleive what you want is a dynamic google map, which is like the one we usually see in mobile phone GPS.

 

I have been looking around for quite some time, and so far the best solution for me is using google static map API, which is so inconvenient since the page keep refreshing whenever I want to update a new coordinate. Another smart guy managed to get the map's handler from google earth and put it on labview ActiveX, but that also requires the installation of google earth and during run-time, google earth application will also be opened (of course without the map). That's what I found so far, in case it can be useful for you.

 

Currently I'm looking into Javascript, which is responsible for creating the dynamic google map using Maps Javascript API. Labview then will call the Javascript functions and load the webpage accordingly. I'm not so sure whether it's applicable, but I will give it a try and update you if I found any.

 

Please do share your point of view, guys. Any comment would be much appreciated.

 

Thank you !

 

Daniel

Member
Garousi
Posts: 39

Re: Google map API

Hi Daniel

finaly i can find god way to solve this problem .

plz visit this site . i find 3 dll here that we can use google map ,yahoo map , bing map ,... and another map api for windows application . 

 

http://www.codeproject.com/KB/miscctrl/GMapNET.aspx

 

Good lock :smileywink:

M.Garousi
Member
daniel_huy
Posts: 6

Re: Google map API

Hi Garousi,

 

It's really surprising that you still remember this post:smileyhappy:

 

I have gone through the website you posted, it seems promising, surely I will give it a try and discuss  with you about it.

 

Btw, I successfully implemented DYNAMIC google map API in Labview using JScript with all the functions supported by Google (addMarker, drawPolyline, ...). Nevertheless there is some limitation in getting the response from the JScript to Labview. Now I'm a bit rushing, so if you are interested, I could post the source code in the next few days.

 

Thanks for your response. Really appreciate it !:smileyhappy:

 

Cheers,

Daniel

Member
Garousi
Posts: 39
0 Kudos

Re: Google map API

Dear Daniel

In this way I can create ( google map , yahoo map , bing map , ... ) and I can add marker and add polygon , update marker position ... 

I will put my source code on this post for you very soon . and please put your source code for me here . 

we should share our experience together to find out witch way is better 

 

Best Regards :smileyhappy:

M.Garousi
Member RMT
Member
RMT
Posts: 3
0 Kudos

Re: Google map API

Dear Daniel

 

I ahd implememt the staic map for LabVIEW now.

But that refresh everytime cause some unsuited.

Can you share the DYNAMIC google map API in Labview using JScript ?

Thank you !!

 

Richard

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page