Skip to content

Chris' Laboratory

chrislee.kr – Personal blog as bookshelves

Menu
  • Home
  • Github
  • Contact Me
Menu

Using KML file for iOS Simulator

Posted on 23/06/201311/09/2016 by Chris Lee
Read Time:1 Minute, 26 Second
(Before beginning, there may be other ways to use KML. I am just beginner in iOS programming and this is how I work around.)

XCode allows to simulate the locations using GPX file type.

One of location tracker, Google Latitude, allows to download recorded locations to KML file type.

To use KML file for iOS Simulator, you can just convert KML to GPX file.

Simple instructions below explains how to convert KML to GPX and use GPX in iOS simulator.

1. Export KML file from Google Latitude

2. Open http://kml2gpx.com/ and convert KML to GPX

3. Add converted GPX file to XCode project.

4. Open GPX file and remove below parts

<metadata>
       <name><![CDATA[Location history from XX/XX/2013 to XX/XX/2013]]></name>
        <desc><![CDATA[]]></desc>
</metadata>
<trk>
        <name><![CDATA[Latitude User]]></name>
        <desc><![CDATA[Location history for Latitude User from XX/XX/2013 to XX/XX/2013]]></desc>
         <number>1</number>
         <trkseg>
         </trkseg>
</trk>

5. Change trkpt and Replace to wpt in GPX file

6. Save GPX file and Run your project

7. On Debug Area, you can find GPS icon. If you click GPS icon, you can see added GPX file on the list. Just click the file and you will see simulator is simulating GPS locations in GPX file.

Screen Shot 2013-06-23 at 12.56.39 AM

 

 

 

 

 

 

 

 

In this tutorial video, the application is from Chapter 62 – “iPhone iOS 6 Development Essentials” written by Neil Smyth.

 

 

Share

Facebook
Twitter
LinkedIn
Email

Related

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categories

  • Adobe Flex (2)
  • Android (20)
  • Angular (ngx) (3)
  • Arduino (2)
  • Codeigniter (6)
  • CSS (5)
  • Django (2)
  • Docker (5)
  • E-Commerce (6)
  • Finance (2)
  • General Documents (15)
  • Google App Engine (5)
  • Helm (1)
  • iPhone (13)
  • Javascript (13)
  • Kubernetes (2)
  • Linux (13)
  • Magento (8)
  • Marketing (3)
  • MongoDB (4)
  • MS-SQL (1)
  • MySQL (6)
  • Node.js (6)
  • PHP (17)
  • Platforms (1)
  • Raspberry Pi (5)
  • React Native (4)
  • React.js/Next.js (2)
  • Samsung Smart TV (4)
  • Security (17)
  • Sencha Touch (4)
  • Server (31)
  • SVN (7)
  • Terraform (1)
  • Tools (7)
  • Uncategorized (1)
  • VirtualBox (1)
  • Vue.js (1)
  • Web Development (7)
  • WordPress (4)
  • Yii2 (3)

Search

Recent Posts

  • Gitlab Helm upgrade failed to register Gitlab runner 403 Forbidden
  • Run docker-dind and docker in Kubernetes cluster
  • Next.js Tutorial – Setting up your database in your local development environment
  • helm list error stream ID 3; INTERNAL_ERROR
  • Bootstrapping Kubernetes cluster with kubeadm

Recent Comments

  • Vadim on Alpine – Plugin caching_sha2_password could not be loaded
  • Andris on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins
  • Obayed on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins
  • Ari on How to install memcache.so/memcached.so for MAMP Pro (Mac)
  • Mida ali on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins

Tags

1 ajax amazon android android-addpart browser chrislee-kr codeigniter codeigniter-tcpdf com-apple-net-racoon CSS CSS history hack delpaigmail-com entity-addpart-double exception-printing-is-disabled-by-default-for-security-reasons ext-plugins-listpagingplugin ext-plugins-listpagingplugin-example f iphone javascript jquery-defaultchecked jquery-samsung-smart-tv listpagingplugin mac magento-exception-printing-is-disabled-by-default-for-security-reasons magento-sample-data-exception-printing-is-disabled-by-default-for-security-reasons nu-vot null-core-errors-confignotfound-config-mk9engine-ini php samsung-smart-tv-jquery samsung-smart-tv-sdk-ajax samsung-smart-tv-sdk-jquery samsung-tv-sdk samsung-tv-sdk-jquery samsung tv sencha-smart-tv sencha-touch-list-paging smart-tv-jquery sqlite subversion svn tcedook tcpdf-codeigniter uilinebreakmodecharacterwrap-is-deprecated unknown-column-link-area

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 Chris' Laboratory | Powered by Minimalist Blog WordPress Theme
 

Loading Comments...