Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6927477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:03:39+00:00 2026-05-27T11:03:39+00:00

If the Google Earth app is installed on an iPad (with iOS 4.2 or

  • 0

If the Google Earth app is installed on an iPad (with iOS 4.2 or 5.0.1) a URL scheme link to comgoogleearth:// from an HTML document in Safari or a PDF in GoodReader will open the application.

Is there a way to provide a parameter to specify a location either as a search or as a file in .kml or .kmz? I have tried various syntax without any luck so far.

I already know how to open the location in the Google Maps application – using an http://maps.google.com/ link with appropriate search parameters that is “hijacked” to the Maps app instead of the web site.

I would like to do the same sort of thing with Google Earth if possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:03:40+00:00Added an answer on May 27, 2026 at 11:03 am

    Not directly no, to date the Apple application protocol for Google Earth doesn’t support any kind of query.

    NSString *stringURL = @"comgoogleearth://";
    NSURL *url = [NSURL URLWithString:stringURL];
    [[UIApplication sharedApplication] openURL:url]
    

    However you could achieve the functionality you require indirectly with a CGI script on a publicly accessible server pretty easily.

    1) Create a CGI script that will accept a given latitude and longitude and create a simple KmlPlacemark with the given location.

    for example, in PHP:

    <?php
    // Get the latitude and longitude from the query
    if(is_numeric($_GET["lng"]) && is_numeric($_GET["lat"])) {
      $lng = $_GET["lng"];
      $lat = $_GET["lat"];
    } else {
      exit();
    }
    
    // Creates an array of strings to hold the lines of the KML file.
    $kml = array('<?xml version="1.0" encoding="UTF-8"?>');
    $kml[] = '<kml xmlns="http://earth.google.com/kml/2.1">';
    $kml[] = ' <Document>';
    $kml[] = '   <Placemark id="">';
    $kml[] = '   <Point>';
    $kml[] = '   <coordinates>' . $lng . ','  . $lat . '</coordinates>';
    $kml[] = '   </Point>';
    $kml[] = '   </Placemark>';
    $kml[] = ' </Document>';
    $kml[] = '</kml>';
    $kmlOutput = join("\n", $kml);
    header('Content-type: application/vnd.google-earth.kml+xml');
    echo $kmlOutput;
    ?>
    

    2) Call the Apple application protocol for Google Earth using a url to the CGI script we created that supplies the required coordinates. e.g.

    comgoogleearth://www.yourserver.com/kmlScript.php?lng=53.2&lat=34.34
    

    When the URL is loaded the Google Earth app will fly to the location.

    This method can be used to generate a location from a search (geocoding) with a slight modification easily.

    The only limitation to this is that the IOS device must be able to access the server holding the CGI script (won’t work off-line)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been asked to add Google Earth images to a desktop app (civil engineering
I got a Windows Forms app making use of Google Earth where users can
I have a VB.NET app that generates KML to show within Google Earth. I
Is it possible to have Google Earth integrated into a Silverlight app? I've tried
In my app I need to search images from google images for a particular
In app-engine-patch ( http://code.google.com/p/app-engine-patch/ ) ... How on earth does the sample application know
I'm having trouble laying a html div over the Google Earth plugin in a
I'm creating an application using the Google Earth plugin ( http://www.google.com/intl/en/earth/explore/products/plugin.html ). Typically, to
I want to use google earth on Android App, because the motion is really
In Google Earth (web browser plug-in, GE API), I am moving the camera from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.