iPhone Developer Conference
Nov 18th, 2008 by duncan
I’ll be attending the Sydney iPhone Developer Conference Nov 19th (tomorrow) - and a couple of us will be going for post-conference beers if anyone else is interested.
Hope to see you there!
Because easy is boring..
Nov 18th, 2008 by duncan
I’ll be attending the Sydney iPhone Developer Conference Nov 19th (tomorrow) - and a couple of us will be going for post-conference beers if anyone else is interested.
Hope to see you there!
Nov 13th, 2008 by duncan
[Update]: The iPhone 2.2. update seems to have broken url’s in the form: maps://maps.google.com/maps?q= however in my initial testing, it seems if you use http://maps.google.com/maps?q= (i.e. using http:// instead of maps://) then things still seem to function correctly - I’ve updated the post to reflect this.
————
This week I spent some time playing around with the maps application on the iPhone and I thought I’d share some of my findings. (Note that since there is no maps application available in the iPhone simulator all of the below will be launched in Safari instead - you’ll have to actually run it on your iPhone to see it in the maps application.)
In it’s simplest form, to launch the maps application at your last location:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://maps.google.com/maps"]];
which gives you something like this:

Getting slightly more interesting, we can specify the latitude/longitude (”ll“) flag to tell the maps application to launch at a specific location (in this case, my workplace):
NSString *latlong = @"-33.874559,151.219575";
NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?ll=%@",
[latlong stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
results in:

If you want to get maps to show all the thai restaurants near you, you can specify the query (”q“) flag:
NSString *name = @"thai";
NSString *latlong = @”-33.874559,151.219575″;
NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?q=%@&mrt=yp&ll=%@",
[name stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding],
[latlong stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
will give you:

Note that in this example, I’ve include the search mode (”mrt“) flag, with a value of “yp” - this tells maps to search only for businesses - although this is of course not necessary.
Other interesting parameters include the zoom (”z“) flag zoom-level (1-19 defaults is 17 I believe - maps will intelligently alter the zoom level if you specify a query):
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://maps.google.com/maps?z=8"]];
zooms out from the previous map:

and the ability to change the map type using the map type (”t”) flag (options are “m”-map, “k”-satellite, “h”- hybrid):
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://maps.google.com/maps?t=k"]];
shows the map in satellite mode:

Last, but certainly not least - it’s actually possible to get the maps application to show with your own set of pins dropped on it (rather than using google’s search results as above). In order to do this, you will need to provide a KML file (KML - “Keyhole Markup Language” is a standard for representing geographic annotation - more information can be found here).
This is again done using the query(”q“) flag, but this time you pass in the url of your KML file:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://maps.google.com/maps?q=http://objective-d.com/sample.kml"]];
(in this example, I only have a single entry in my KML file - you can view the file here: http://objective-d.com/sample.kml):

This has just been a taster of the kind of control you have over the maps application, but hopefully it’s got you interested enough to start playing around.
For more information I suggest you check out the handy reference available here: http://mapki.com/index.php?title=Google_Map_Parameters.
If you are interested in including a map from within your iPhone applications, I encourage you to take a look at the iphone-google-maps-component and route-me projects.
Oct 10th, 2008 by duncan
Register now (there’s one here in Sydney on Nov 11th).
[Update]: In case you didn’t notice it, there’s more info available of the sessions etc.
Hope to see you there!
Oct 9th, 2008 by duncan
I just updated IE7 on my VMWare XP Image, and was presented with the following message:

I’m a little confused why I would click “Save your Settings” to select a new search provider - surely it would make more sense to provide me with the list, and then click save?
(notice also the word “settings” has a capital “s” on the button, but not in the text above it)..
Maybe I’ve been a mac user for too long…
Oct 7th, 2008 by duncan
1.5 is now available on the App Store. This update brings a custom numeric-only keyboard to the app.
Sep 30th, 2008 by duncan
Version 1.2 is now available - now with Pages and “Wiggles”.
Sep 28th, 2008 by duncan
Sep 25th, 2008 by duncan
Continuing my “release early, release often” habit, I’ve just uploaded version 1.4 of Conversion to the App Store.
This release adds an all-new “computing” category of conversions.
Sep 24th, 2008 by duncan
Sep 23rd, 2008 by duncan
Some wise words from Mr Shipley.