Announcement

Collapse
No announcement yet.

Maps.google

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Maps.google

    Ok,

    new here and I have a lot of expierence with macs and the IT world. So if an of you developers needs a beta tester let me know.

    now on to my questions.

    I know there are aps for cell phones to get google maps with GPS. Has any one tried to get it working on a MAC. If so with an internet connection this would be the best mapping software, they just added trafic.

    ANy ideas?

  • #2
    you might want to search a little bit. BugByte had a little guide on how to get GPS and google maps to work. It will take a little work, but it looks like there is no plug-n-play.

    EDIT:
    Well I tried to find it but I couldn't . But here is one for RoadNav:
    http://www.mp3car.com/vbulletin/showthread.php?t=90035

    That one links to the relevant post here:
    http://www.mp3car.com/vbulletin/showthread.php?t=85612

    Go to post #11 it's bugbyte's instructions on how to do it. I think if you have internet connection 24/7 in the car then your GPS options open up.

    Comment


    • #3
      Thats for google earth, I want google maps. Google earth is impressive but bandwidth intensive as well as not a good solution for an in car navigation. I am going to implement bugbytes GE app because I do geobloging and love me some GE, but if we can get maps.google.cm to work with the cell phone apps its small takes little bandwidth and can be incorporated in front ends liek AMP and all the others.


      Keeping in mind the cell phone apps are java. I have it working on my BB 8800 and it give turn by turn as well as live traffic.


      Check it out

      http://www.mgmaps.com/

      Comment


      • #4
        Originally posted by talk2dug View Post
        I know there are aps for cell phones to get google maps with GPS. Has any one tried to get it working on a MAC. If so with an internet connection this would be the best mapping software, they just added trafic.
        Yes, we have tried this in QCar and it works.

        Comment


        • #5
          Where is the download? I have looked for Qcar and can not find it. Or show me/ tell me how to get the app to run on a mac.

          Or just point me in the right direction. And ill add it as a plugin into AMP.

          THanks

          Comment


          • #6
            surprising no one has commented on this. Is it not a viable solution? Are there better free GPS solutions for the mac, besides roadnav. Roadnav is not a good solution.



            A bit confused by the lack of responses....

            Comment


            • #7
              SO how did you get it to work? Please PM me, I would LOVE to get this working...

              Comment


              • #8
                http://www.mp3car.com/vbulletin/showthread.php?t=91927 6th link google.com , skimming through the thread says its in closed beta.

                Comment


                • #9
                  Well how about throwing a bone to the community on how to run the GMAPS on the mac.....

                  Comment


                  • #10
                    OK, here is your bone ;-) This is a basic principle of integration of Google Maps into a Cocoa application.

                    1. You need to create a web page, that you will be displaying. This can be the standard Google Maps API example with one exception - you need to define the variable map in the body, so it becomes global:
                    Code:
                    <body>
                      <div id="map" style = "width:800px; height:512px;"></div>
                      <script language="JavaScript" type="text/javascript">
                        var map = new GMap2(document.getElementById("map"));
                        map.setCenter(new GLatLng(0, 0)); // or your default location
                      </script>
                    </body>
                    2. Then you create a Cocoa application, make sure you include the WebKit in the project, create a WebView in a window, point an instance variable (named mapView below) to the window and load the above mentioned document into the WebView.

                    3. Now you can easily communicate with the displayed map, something like this:
                    Code:
                    // you would of course get this by parsing the GPS output
                    NSString *lat = "50.12345"
                    NSString *lon = "04.00012"
                    NSString *jsCmd = [NSString stringWithFormat:@"map.panTo(new GLatLng(%@, %@));",lat, lon];
                    id document = [mapView windowScriptObject];
                    NSString *err = [document evaluateWebScript:jsCmd];
                    This way you can call all the Google JavaScript API functions, typically as a response to OS X GUI actions. Another quick example would bee zoom, called in response to a button click:

                    Code:
                    -(IBAction)ZoomIn:sender{
                        id document = [mapView windowScriptObject];
                        NSString *jsCmd = @"map.zoomIn();";
                        NSString *err = [document evaluateWebScript:jsCmd];
                    }

                    Comment


                    • #11
                      THANK YOU!!!!!!!!!!!

                      Now we are talkin........

                      I will implement this weekend....


                      Goodonya.....

                      MMM what a tasty bone..

                      Comment


                      • #12
                        Are you sure this works?

                        I have tried following your example but it looks like they use your API key to make sure that the requests come from your website. How can I make it look like the request is coming from my sites domain name?


                        Originally posted by Jirka Jirout View Post
                        OK, here is your bone ;-) This is a basic principle of integration of Google Maps into a Cocoa application.

                        1. You need to create a web page, that you will be displaying. This can be the standard Google Maps API example with one exception - you need to define the variable map in the body, so it becomes global:
                        Code:
                        <body>
                          <div id="map" style = "width:800px; height:512px;"></div>
                          <script language="JavaScript" type="text/javascript">
                            var map = new GMap2(document.getElementById("map"));
                            map.setCenter(new GLatLng(0, 0)); // or your default location
                          </script>
                        </body>
                        2. Then you create a Cocoa application, make sure you include the WebKit in the project, create a WebView in a window, point an instance variable (named mapView below) to the window and load the above mentioned document into the WebView.

                        3. Now you can easily communicate with the displayed map, something like this:
                        Code:
                        // you would of course get this by parsing the GPS output
                        NSString *lat = "50.12345"
                        NSString *lon = "04.00012"
                        NSString *jsCmd = [NSString stringWithFormat:@"map.panTo(new GLatLng(%@, %@));",lat, lon];
                        id document = [mapView windowScriptObject];
                        NSString *err = [document evaluateWebScript:jsCmd];
                        This way you can call all the Google JavaScript API functions, typically as a response to OS X GUI actions. Another quick example would bee zoom, called in response to a button click:

                        Code:
                        -(IBAction)ZoomIn:sender{
                            id document = [mapView windowScriptObject];
                            NSString *jsCmd = @"map.zoomIn();";
                            NSString *err = [document evaluateWebScript:jsCmd];
                        }

                        Comment


                        • #13
                          I place the web page on our server for which we have the key. I think it should work if you place the page on your hard drive and use file:// type URL, but I am not 100% sure.

                          You can use our page if you want...

                          http://tracking.qcar.nl/app/map.html

                          Comment


                          • #14
                            Thanks for the tip I will try that. Although something even more funny is happening to me. It keeps telling me that map is undefined and I even have the script block in the body tags like you suggested, here is a link to my code.

                            http://paste.lisp.org/display/72845

                            any help would be appreciated.

                            Comment


                            • #15
                              I figured it out, for some reason in my initialize function I had to do

                              window.map = GMap2 blah blah
                              and then in the actions use window.map.zoomIn()

                              I also got it working with the html file being local in my app so no need to store it on my server, not sure if it will work forever like this but it seems Google does not lock it to your particular domain.

                              Comment

                              Working...
                              X