Fire into apple or google maps on mobiles and desktops

Contains tips for configurators working with Aware IM
Post Reply
rocketman
Posts: 1239
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Fire into apple or google maps on mobiles and desktops

Post by rocketman »

I have a mobile app which includes the ability for members to look up each fellow members contact info. Giving them the ability to initiate phone calls or send emails was easy using html in the form with callto: and mailto: tags

Here's a useful piece of code I found on the apple dev website. The really cool thing is that anyone using the android operating system and Chrome. - it doesn't matter - Chrome will intercept the URL and divert to google maps, so we don't have to worry about coding for multiple devices.

On your form put an HTML field and try

<a href="http://maps.apple.com?daddr=<<[the postcode/zip of the place you want to get to]>>&saddr=<<[the start address]>>">Get Directions</>

Daddr = destination address
Saddr = Start Address
Items inside <<>> are AwareIM BO ATTRIBUTES
Rocketman

V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
Post Reply