Can I use the place ID to get just the geolocation? - minimise cost in google maps platform - flutter

I want to use markers in a map for a start point and endpoint. By searching I found that the way to do that is to use autocomplete, get some suggestions, and based on the place ID of the selected suggestion to return the longitude and latitude of the place by calling the places details API by ID. So I would like to know if there is any better way to avoid using the places details API which is one of the most expensive Places details table cost. Is there any way to get the just geolocation of a place based on the place ID?

You can use the Geocoding API (or the Geocoding Service in the Maps JavaScript API) to fetch a place from its Place ID, simply use the place_id parameter in the web service, or include (only) the placeId field in the JavaScript request. While the Geocoding API returns only a subset of the fields provided by Place Details, it should lower the cost by about 70%.
However, when using this approach there will be an additional cost for Place Autocomplete billed by request, because the Geocoding API does not support the session token that enables billing per session.

Related

For Uber Development API, Is it possible to pass source and destination address as parameters to get cost estimation response

For Uber ride requests, it requires start location(start Geo Location), end location(end Geo Location) and fair Id.
As from user perspective, i can pass source and destination address.
Is it possible to pass start and end location as address which is given by the user or needs to manually convert the address as geo location using any google api's.
the third parameter fair Id, where should i find the fair id?
I have read the developer.uber.com document, for start location and end location, geo locations are mandatory and start and end address are optional.
Kindly assist to solve the issue.
For version v1.2, you must pass the latitude and longitude of the place. The best solution is to use another api to get the latitude/longitude of a place then send the lat/longitude to thje uber api. There are a few free lat/longitude apis out there, such as google location api.
Answering this for others who may look for this in the future, since I had same question a few weeks ago.

text based search api for skobbler web integrators

I am using a skobbler map web API with leafletjs, and I want to implement the search feature (like Google maps Geocoding API), given a name of the city or address of a place it should return approximate or exact geocode (lat, lng). is there such an API exist with skobbler or I have to use 3rd party api and feed data to skobbler?
I am trying to implement some feature of maps.skobbler.com but not all of them just a text search is what I am looking for.
Currently skobbler/Telenav does not offer an online geocoding service on the standard plan.
On mobile you can access this functionality once you download the map data as an on-board package but on mobile you will need to integrate (delegate to) another geocoding service.

Bing local search listing information?

I read the Bing documentation but can't find a way to query Bing for local listing information such as name, address, phone, website, claimed or not, number of reviews and some snippets, and images associated with the listing if any, etc. Is there any RESTFul search API for this purpose? Could you point me to the correct API?
Thank you a lot.
You will be able to find this kind of information in Bing Maps for Enterprise platform.
Here some links that might be helpful:
Bing Maps REST Spatial Data Service (Public Data sources):
NAVTEQEU: http://msdn.microsoft.com/en-us/library/hh478193.aspx
NAVTEQNA: http://msdn.microsoft.com/en-us/library/hh478192.aspx
Bing Maps REST Location API, if you're looking for geocoding and places:
http://msdn.microsoft.com/en-us/library/ff701711.aspx
Bing Maps SOAP Search service (consider not using it, I recommend to use REST instead of this one)
http://msdn.microsoft.com/en-us/library/cc980849.aspx
Bing Search 2.0 also includes location information, see on Azure Data Markeplace:
http://datamarket.azure.com/dataset/bing/search
You should be able to find what is appropriate to your needs and also keep in mind the licensing associated to those platform and services.

MKReverseGeocoderDelegate without google maps

In my iPhone application I find the latitude and longitude using the location API available. I want to reverse geocode that and get the country code. But without using 3rd party or external API call I would like to get it. When researching I found that MKReverseGeocoderDelegate will be useful for this. But I dont have any requirement to use google maps. I want to know whether my approach is ok to get the current country where user resides.
Thank you
From the MKReverseGeocoder class reference:
The Google terms of service require
that the reverse geocoding service be
used in conjunction with a Google map;
take this into account when designing
your application's user interface.
So, that means you can't use it without using Google Maps (MKMapView).
I recommend looking at an existing SO question that covers what you want to do - How to get user's country information

Map Search Results

I am trying to provide useful information on an area to users based on a search term and their location.
I thought googles geo api would return a best match list of results for a query such as "swimming+pool+'my location' that I could then place an annotation for each result in my map view but it only returns one best match location.
How can I go about doing this?
The Google gecoder only handles addresses. Google provide a completely separate API which will geocode business names and categories, the Google AJAX Search API in Local Search mode
Bing's map api will return multiple results for a business search near a location - which is essentially what you're doing. Unsure about Google's results.
You can't use Google's HTTP API for business info. You should take a look at Yelp or Foursquare's APIs, I think.