crash when multiple time call Google map api to convert cordinates to address in iphone - iphone

I want to show path between to location and want to show adress for that path.
So i have used following api.
http://maps.google.com/maps/api/geocode/json?latlng=%f,%f&sensor=true
and there is minimum 10 location in between to cordinates.So all that 1o time i call this api.But in that it show 'Query limit' in response.So i don't get adress and it crash app.So how can i get adress from given cordinates.

Related

Flutter & google maps how to save users trajectory

I would like to save users' trajectory when they are on a vehicle and save them as a "history of trips" for other calculations Like distance, time, etc..
When I used the directions API, it only gave me the shortest route between the start and the destination, but I need the exact route that the user took
Exactly like Google TimeLine: https://timeline.google.com/maps/timeline

how to get the users current location address in flutter

I would like to display the current location of the user address automatically.
How to get the current location of the user in flutter?
When I was trying to run sample program, it shows me the error as
[ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(40)] java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArraySet;

Google Geocoding API not returning correct latitudes,longitudes for address as returns in google maps

I am facing a strange problem of google geocoding API.
My requirement is whenever a user types any address all the corresponding locations should show in my map View(I am using MKMap View) like it happens in google maps.
So what I do is I use google geocoding API that returns me a list of latitudes and longitudes for that corresponding location.
But for some location eg:- caribou coffee, chapel hil (When I search for this location in google maps,I get a number of annotations showing that address but when I type this address in geocoding I didnt get nothing.
request url:-http://maps.googleapis.com/maps/api/geocode/xml?address=caribou%20coffee,%20chapel%20hil%20&sensor=false
response:-
-<GeocodeResponse>
<status>ZERO_RESULTS</status>
</GeocodeResponse>
Can any body tell me why I am not getting any latitude and longitude that correspnds to this address like it shown in google maps or there is some other way so that I can integrate the behaviour of google maps in my applications(mk map view).
Please help me as I am stuck here.
Any suggestions will be highly appreciated.
Thanks in advance!
Note that the address is incomplete - e.g. searching for caribou coffee, chapel hill, nc does produce a result.
I would think that Geocoding API can't do anything with such addresses, and you may need to use some extra API - e.g. Places API (https://code.google.com/apis/maps/documentation/places/ ), which can return some results for queries like "coffee". You'd need to supply the user's location to use as a base, however.

Display Address with strings using MapKit in iPhone

I am building an iPhone app in which i am just having the users address as a string and i am not getting any latitude or longitude for this, i want to show this address in the map view so is their any appropriate solution for doing this please help me out
You should show the map view using user's address.
Get latitude/longitude from address
http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/
Get street address at lat/long pair
https://github.com/tylerhall/CoreGeoLocation

get address from reverse geocoding

in my application, I got a map that show the location of the user. But I also need to get the exact address of where he is and put it in a string.
How does it work?
Use MKReverseGeocoder. Look at the Apple sample app CurrentAddress.
The placemark object passed into didFindPlacemark has the address fields which you can put into a string.