How to email CLLocationCoordinate2D as a link - iphone

I am trying to emulate the Maps 'Share Location' via email functionality.
I have the latitude and longitude of my location and am currently using it to display the location on a map via MKMapView.
I also have functionality that composes an email from the app and I would like to include the location in it but can not figure out how to construct a link, using the longitude and latitude.
I have seen other apps with apps with this functionality so I know it is possible.
Any help would be much appreciated.
Thanks in advance.
UPDATE:
The link should open Google Maps.

Where should it link to? Your app or Google Maps? For the latter, check out the Apple URL Scheme Reference. For the former, you have to construct your own URL scheme and then create a string that matches your scheme.

Related

obtaining geolocation for a facebook chatbot

I am creating a chatbot using messenger in python but I don't know how to get the geolocation from the facebook user (latitude, longitude). I saw that I had to use graph API but the field status does not seem to work. Would you have a query example? Thanks in advance!
[Update with the current status about how to solve this]
Location Quick reply have been deprecated and removed since end of june 2019.
They're supposed to announce a new way of achieving the same behavior but nothing so far 6 months later.
Facebook recommends asking for user's address in a textual form.
This means that if you use an API consumming GPS coordinates you now must use an address to GPS conversion service.
You could think that using a webview with a "get geolocation" button would do the trick but this feature is blocked on all desktop browsers. If the iframe content isn't on the same domain you cannot get geolocation data. Still it works on mobile (as it's not just a simple iframe but a full webview).
Basically, at the time of this writting, you have no much way to achieve the same as the "get position" quick reply behavior.
The only solution is to ask the user's address in a textual way and convert it to GPS coordinates (if you need them).
You can use the location quick reply:
https://developers.facebook.com/docs/messenger-platform/send-messages/quick-replies#location

Is a license required to use the Bing maps version that's on Facebook pages?

I notice that Facebook pages allow a map box that clicks to a full page, dynamic Bing map:
And by just changing the address and name parameters in the link HTML I can get the map to show any location and map sign I want.
Do I need a license to generate these links myself for clients that I build a web page for?
Thanks for any information.
If you want to create links to Bing Maps that open a map to specific location using nothing more than a URL then you can do this using the documented method found here: http://msdn.microsoft.com/en-us/library/dn217138.aspx Don't reverse engineer the maps on Facebook.
A license is not required to do this. However you will find that you are limited to only the functionality that is exposed through the URL and won't be able to do much in terms of customizations. You will also be taking users away from there current environment to the Bing Maps website which might not be the ideal user experience. If you need more customization functionality or a better user experience then you would use the Bing Maps development API and which does have some free terms of use, but also has options for licensing high volume or internal apps.

How to use longitude and latitude from a map to load map apps on mobile devices from a web app

I have a mobile web app which has a google map feature and a button to click to get directions to the specific location, at the moment it takes you to the mailing address location within the mobile map app. Is there a way to code it so that it marks the area with long and lat instead of the mailing address? The marker on the map on the website is marking the long and lat, which is already saved on my website. So I already have all the info needed, just not sure what to change to get the mobile maps to load the location properly. Any suggestions would be greatly appreciated.

can i integrate ovi map in my iphone application?

I want to use the Nokia Ovi map in my iPhone application. Is it possible? If so, please help me to find a link to some API documentation and steps for integration.
Nokia Ovi Maps run on any HTML5 compatible browser, thus you can embed it in your application with UIWebView (see the documentation of this class on how to do it). According to Nokia you can do the followings:
You can see where you are on the map, thanks to HTML5 support for
positioning
You can find addresses, businesses and other places of interest, anywhere in the world
You can get to know the places: all the essential information about a place are presented on one page (pictures, user reviews, popular travel guides description, contact information)
You can plan the fastest route to your destination by car or on foot
You can see where the public transport lines go, and where the stops are
You can share your favourite places with your friends via SMS, email, Facebook or Twitter
Found here: http://blog.maps.nokia.com/archive/nokia-maps-goes-to-ios-and-android

iPhone: get nearby places / places list

I've been wondering, what list does facebook places use? Is it foursquare's one?
And if so, how does it work? Can I connect to foursquare's API and get nearby places with coordinates or something like that?
Thanks a lot!
Here is simple way to find out places near by given LAT and LONG as well as with specific word like-- Hotel,Bar etc:
http://maps.google.com/maps?f=q&sll=LATANDLONG&radius=500&q=SEARCHWORD&output=kml
It returns KML file ,and user can parse just like XML parsing.
Here's a link to FourSquare's documentation. Scroll down and look for "Venue methods." You supply the API the users longitude and latitude and Foursquare will return a list of nearby places.
http://groups.google.com/group/foursquare-api/web/api-documentation?pli=1
Also, here's a link to some sample code on how to implement the Foursquare API into your iOS app.
https://github.com/anka/bw_examples/tree/master/FoursquareIntegration
I believe facebook and the like foursquare built up their places mostly by user input.
In other words they might have started by buying a commercial dataset in a particular location. That's the seed data. Thereafter, users can add more places as they go. This way their database grew and now they have their own proprietary data about places.
If you go to either apps, you can search for a place, and if not found you get the option to add that place with address, category etc.
I am curious to know if Facebook uses any third party API for its Places feature.
For how it works, you can use Facebook Graph API which provides search.