Turning off reverse geocoding when opening "Maps" in iPhone through a URL with lat./long. parameter - iphone

I am trying to figure out how to use the Google Maps URL format for sharing locations as latitude/longitude in an app that I am developing for iPhone.
Example: http://maps.google.com/maps?q=40.77407,-73.96675
This is a point in Central Park, New York. When using this on an iPhone, "Maps" will open and reverse geocoding will be done, resulting in an address on the nearby 5th Ave.
But for sharing a meeting point in Central Park, this is quite useless!
Is it possible to specify any parameter in the query string that will turn off reverse geocoding, so that the exact lat/long position is shown in the "Maps" app on iPhone?
(Compare with the result one will get when entering this url on a desktop, where the exact location will always be pointed out by a green arrow.)

I found the answer myself: Adding "loc:" immediately after "q=" will turn off the reverse geocoding.
Example: http://maps.google.com/maps?q=loc:40.77407,-73.96675

Instead of a generic 'q', which according to specification is treated like a generic query
This parameter is treated as if it had been typed into the query box by the user on the maps.google.com page. q=* is not supported.
you could try ll or saddr.
ll The latitude and longitude points (in decimal format, comma separated, and in that order) for the map center point.
saddr The latitude and longitude points from which a business search should be performed.
The maps url scheme is specified here: http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html

Related

how can I determine if a user is within a property line

I would like to take a longitude and latitude of a user and determine if they are within a set boundary of property line on the map similar to the rectangles symbolizing buildings.I have looked into using CLGeocoder which returns an address but I would like to be able to determine if the user is within a park, or a property, a neighborhood or even a building which may have multiple addresses within it. What is the best way to go about doing this thank you.

Retrive all districts based on city name from REST query

I've searched for solution for that problem on here-api documentation but I can't really find it out ! I'm starting doubt if this even possible.
Ok so basicly what i need to know for now:
1. Is this even possible on this platform ?
2. Using exactly which 'module' (eg. PLATFORM DATA EXTENSION,BATCH GEOCODER)
There is no straight solution to get all districts in a city since district concept varies from one place to another(country-specific). Still you can try one of the below options:
administrative-areas-buildings category in places api
city-town-village category in places api
retrieveAreas mode in geocoder api (apply bbox or increase the radius of prox parameter and see if it works for your location)
Search Text in geocoder can also be used if you are search for districts which match a regex
You can check if the above 1) and 2) are applicable to your location using https://places.demo.api.here.com/places/v1/categories/places?at=41.8369%2C-87.684&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

Twitter advanced search by date AND location for research purposes

I'm trying to research a topic and I need to get all tweets within 2013 and 2015 and a specific location for two keywords.
I tried to get the results via Advanced Search but I allways get no results.
I tried:
cannabis near:"EspaƱa" within:15mi since:2013-10-07 until:2015-01-01
cannabis near:"Spain" within:15mi since:2013-10-07 until:2015-01-01
Basically, I have a database of scraped press articles sorted by date from a bunch of sources, and I want to know how the agenda of this news sources have an impact on the social media conversation.
I could do it over Reddit if it was the case for the US, but there's no Spanish alternative (well, we have Meneame, but the user base is very left-leaning and I think it will be very narrow).
So I wanted to either scrape the search results or get them via API, but It's not working, and AFAIK I can't do anything similar with Facebook.
One way to achieve this is by using Twitter's geocode operator. In the example below i took Madrid as a center and covered a radius of 600km around it like this:
(canabis OR cannabis) geocode:40.4381311,-3.8196196,600km since:2013-10-07 until:2015-12-31
Try it...
The syntax is as follows:
([your_boolean_search_query]) geocode:[latitude],[longitude],[radius]km since:[] until:[]
one easy way to find latitudes and longitudes of locations is to use Google Maps. Simply navigate to a place using the search box and then copy the latitude and longitude element from the URL line in the browser. Here it is for Madrid. The latitude and longitude are right after the # sign, separated by a comma:
https://www.google.com/maps/place/Madrid,+Spain/#40.4381311,-3.8196196,54451m/data=!3m2!1e3!4b1!4m5!3m4!1s0xd422997800a3c81:0xc436dec1618c2269!8m2!3d40.4167754!4d-3.7037902?hl=en
Try it...

In iOS cross launching Uber app when longitude and latitude not available

Is it possible to pass drop off location by cross launching Uber app when longitude and latitude are not available ?
For example, if I know location coordinates, my dropoff parameters are:
dropoff[latitude]
dropoff[longitude]
dropoff[nickname]
dropoff[formatted_address]
Sample URL:
uber://?client_id=<client_id>&action=setPickup&pickup=my_location&dropoff%5Blatitude%5D=37.621313&dropoff%5Blongitude%5D=-122.378955&dropoff%5Bnickname%5D=San%20Francisco%20Airport&dropoff%5Bformatted_address%5D=San%20Francisco,%20CA%2094128,%20United%20States
Everything works great. See attached screenshot:
Drop off Destination correctly populated
What if I dont have longitude and latitude ? My dropoff parameters is only nickname:
dropoff[nickname]
Sample URL:
uber://?client_id=<client_id>&action=setPickup&pickup=my_location&dropoff%5Bnickname%5D=300%20el%20Camino%20real,%20Sunnyvale,%20ca
I would expect in absence of coordinates the nickname is used as a query (same as what used when coordinates are available). But the destination is empty in this case.
Drop off Destination is emtpy
Is this an expected behavior ?
Including only the dropoff nickname does not set the dropoff location. The latitude and longitude are required for setting the location, while the nickname/address are used for visual purposes.
You can use Apple's CLGeocoder class to do geocoding on your nickname and get a location coordinate to pass in the deeplink.

iOS 6 MKMapView Search for Places

I want to search for places such as "Apple Store", "Italian Restaurant" etc. and also for address such as "5th Ave, New York, NY, United States".
How can I search for places and set MKPlacemark for each place I find?
If you are worried about requests limit for Google Maps API, you can use some of open source maps API instead perhaps, like Nominatim API , look at http://wiki.openstreetmap.org/wiki/Nominatim
From iOS 6.1 Apple introduced a new search API - MKLocalSearch. You create a MKLocalSearchRequest using string and region to search in (the region is just a hint for the search, it doesn't guarantee results will fall within this region) and use this request to initialise a MKLocalSearch, which asynchronously gives you the results in an MKLocalSearchResponse object. It was only introduced in january, so it has it's issues at this stage - you only ever get 10 results per search, plus some of the results are strange, but it's definitely worth checking out. There's also no way to specify the type of object (town/business/landmark etc.) you're searching for, which is a shame. Here's a cool tutorial. Note that the more precise the region you supply the better the results.