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 1808114
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:13:15+00:00 2026-05-17T06:13:15+00:00

So, I’ve got a class with contains a NSMutableArray of CLLocation ‘s, and a

  • 0

So, I’ve got a class with contains a NSMutableArray of CLLocation‘s, and a name.

Now I want to save them to KML, ideally as a track (or , so I can use the file to display the locations traveled.)

How would I go about this?

I don’t expect code, more guidance (I’m new to Objective-C and KML, so got a lot to learn! 🙂 )

  • 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-17T06:13:16+00:00Added an answer on May 17, 2026 at 6:13 am

    I haven’t used either of these, but here’s a couple of libraries that turned up in a search:

    http://github.com/incanus/Simple-KML/

    http://developmentseed.org/blog/2010/aug/12/kml-parsing-library-released-apples-ios-platform

    Edit: it looks like both those libraries are parsers, not writers. You may have to create your own writer.

    I’d say that using either of these libraries would save you a lot of time. That said, have a look at how KML is formed. It’s just XML and making a track is really easy. Here’s an example:

    <?xml version="1.0" encoding="UTF-8"?>
    <kml xmlns="http://earth.google.com/kml/2.1" xmlns:trails="http://www.google.com/kml/trails/1.0">
      <Document>
        <name>RK_Running.kml</name>
        <Placemark>
          <name>Running 12/9</name>
            <Style>
              <LineStyle>
                <color>ff0000ff</color>
                <width>4</width>
              </LineStyle>
            </Style>
          <MultiGeometry>
            <LineString>
              <tessellate>1</tessellate>
              <coordinates>
    138.968309,35.716577,17.0
    138.967998,35.716859,17.0
    138.967526,35.717252,20.0
    138.967055,35.717494,20.0
              </coordinates>
            </LineString>
          </MultiGeometry>
        </Placemark>
      </Document>
    </kml>
    

    Save this as a .kml and it will open in Google Earth

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a

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.