|
|
| 
| | iPhone Web Development - VegGuide Maps App My first two iPhone web apps were for my custom web mail client (Penguin Mail) and my web port of the Citadel-86 BBS (Webadel5). My third, and somewhat more interesting web app, is an iPhone version of the insufficiently lauded VegGuide Map mashup.
The regular VGMap web app lets you enter your current location and a few preferences and then spits out a Google Map with all of the matching restaurants near your location. The data is taken from the totally radical VegGuide web site. The iPhone version makes it suitable for use on the mobile device.
http://vgmap.jarrin.net/iPhone
The biggest stumbling block I had to overcome was getting the web site to redirect the end user to the native iPhone Maps app and have it read from a remote KML file. I have read numerous comments on the interwebs from other people trying to do this and failing (or, in some cases, it used to work but the 2.0 framework broke it). The trick is this syntax:
<a href="maps:q=http://vgmap.jarrin.net/custom.kml">
That works for me. Or, in my case, the code-behind looks like:
url = Server.UrlEncode("http://vgmap.jarrin.net/custom.kml"); Response.Redirect ("maps:q="+ url);
I hope this is useful to at least one person out there. I banged my head against the internet for a few days trying to figure out this fairly straight-forward technique. I can't believe I could possibly be the first person to figure it out.
VegGuide Map
Mashup of the VegGuide restaurant data and Google Maps
Comments:
Friday, May 21, 2010 8:10 PM from
When I try to access this from my iPhone (or my computer for that matter) I get certain errors. Can you verify that it still works? Add a comment:
| |
|
| |
| |
|