Can I open a link to google maps ?

Hi,

I am making an app which shows places of interest within a given radius from the user's current location. I wish to plot a route between these two locations on a MKMapView. I tried using the MKDirections class but I always get an error "Cannot determine route" (or something similar). On researching a bit I found out that this was because Apple does not provide directions support in my country, India. As a workaround, I am using the following code to open Google Maps in the browser.


let url = NSURL(string: "http://maps.google.com/maps?saddr=\(sourceLocation.latitude),\(sourceLocation.longitude)&daddr=\(destinationLocation.latitude),\(destinationLocation.longitude)")


UIApplication.sharedApplication().openURL(url)


So my question is, is this allowed? Can my app get rejected for using google maps?

Can I open a link to google maps ?
 
 
Q