Is it possible to get a list of all districts within a country using the here.com api?
I have tried using the batch Geocoder api and setting the level to district and the country to AUS but it is not returning expected results.
Any advise would be appreciated.
You can get this info from Platform Data Extension
https://developer.here.com/documentation/platform-data/topics/introduction.html
Related
I am using google map api to get address information by Postal code around the world [ not specific country].
https://maps.googleapis.com/maps/api/geocode/json?address=610&key=[apiKey]
I expected zip code is 610, but google response result for street number 610.
Is there any ways to get address by zip code only?
Thank you guys in advance for supporting.
How about something along with this query
https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:1441|country:PH&key=YOUR_API_KEY
This will get you the address kind of this format
http://prntscr.com/ouwlq5
Key note here is the country. You need both of the postal_code and the country to make this work. Without country you'll get zero results.
How can I list all cities by state using Here API?
For example:
Request: country=BRA and state=SC
Response: city1, city2, city3...
I have tried without sucess:
https://geocoder.api.here.com/6.2/geocode.json
?level=city&mode=retrieveAreas
&app_id={APP_ID}&app_code={APP_CODE}
&country=BRA&state=SC
&additionaldata=city,true; street,false; district, false; state,false; country, false
But it returns me only the corresponding state
The Geocoder is here not the right service for your approach. You need to consider that it is designed for geocoding addresses and not doing a look-up search in that dimension.
What I would recommend here is to check the API for Fleet Telematics Advanced Data Sets:
See further details here:
https://developer.here.com/documentation/platform-data/topics/what-is.html
currently we fetch the address information from reverse.geocoder but we are also using rme and pde so i was wondering if I can everything without reverse geocoder call?
What we need at the end is
STREET NAME, COUNTY, COUNTRY
Country and street name we have, but the county (federal state name) is only an id in ROAD_ADMIN_FC. Is there a way to map it to a name?
Geocoder API is the best to get street, county and country information all in one query. But depending on your usecase, you can also check out ROAD_NAME_FC* and ROAD_ADMIN_NAMES_FC* to get these information. Refer tcs.ext.here.com/pde/layers?region=WEU&release=18135&url_root=pde.api.here.com to check the responses you can get from these PDE layers.
Hello i am using simple google map places api to get near by atms for users. My client lives around new york and for some strange reason api shows zero results for that place, but works fine near me (pakistan) . I searched for it a little and found out it was google's issue and some other places were also experiencing the same problem. But i never quite found any solution for this.
This is the get call i use
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=40.7128,74.1059&radius=10000000&keyword=atm&key=MY_KEY
I would really appreciate the help. Thank you :)
Google place nearby search maximum 50,000 meters (31 miles) . if you try enter more than 50,000 it not work proper.
There is another way for find all ATM in a city. google provide Text Search Requests
https://maps.googleapis.com/maps/api/place/textsearch/json?query=atm+in+Reno,NV,89501,USA&key={API_KEY}
query = keyword + in + city Name
for get city name using latitude longitude
http://maps.googleapis.com/maps/api/geocode/json?latlng=39.52963,-119.81380&sensor=true
For more information how to get city name using latitude longitude
https://developers.google.com/maps/documentation/geocoding/start?csw=1#ReverseGeocoding
for more information about how to use Text Search Requests
https://developers.google.com/places/web-service/search
OR (second way)
There is another way for find all ATM in a city.
Open Google Maps .
create 10-12 or more points latitude , longitude value to trigger
request.
Then use a loop to find all places within these points.
If you want more appropriate results, increase first trigger points
for your requests.
- It is just a logic i created in php.
$triggerPoints = array("lat1,long1", "lat2,long2", "lat3,long3",....);
foreeach(triggerPoints as $tP){
$requestUrl = "https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=$tP&radius=[YOUR_RADIUS_VALUE]&type=[YOUR_TYPE]&name=panera&key=[YOUR_KEY_HERE";
$results = file_get_contents($requestUrl);
//Do what you want with response JSON data
}
SHORT ANSWER: Use logical types with your needs.
In my case i used food types instead of supermarket. In some cases, my local market named A101 wasnt found under supermarkets. To find which keywords is best for you, you can search below url with your location and map_key and find most common keywords under types for each query and use it.
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=40.986527896166244,%2029.24326049097467&rankby=distance&keyword=a101&key=YOUR_MAP_KEY
We are currently using the google trip planning feature on our transit website. The issue we are running into is the fact that when a customer types in a starting point (for example "Queensway" in Kelowna, BC Canada) we get auto-fill results from all over North America. Can the auto-fill results be restricted to a specific province or state? Thanks!
Try using Component Filtering
In a geocoding response, the Google Maps Geocoding API can return address results restricted to a specific area. The restriction is specified using the components filter. A filter consists of a list of component:value pairs separated by a pipe (|). Only the results that match all the filters will be returned. Filter values support the same methods of spelling correction and partial matching as other geocoding requests. If a geocoding result is a partial match for a component filter it will contain a partial_match field in the response.
The components that can be filtered include:
route matches long or short name of a route.
locality matches against both locality and sublocality types.
administrative_area matches all the administrative_area levels.
postal_code matches postal_code and postal_code_prefix.
country matches a country name or a two letter ISO 3166-1 country code.
Note: Each address component can only be specified either in the address parameter or as a component filter, but not both. Doing so may result in ZERO_RESULTS.
A geocode for "Santa Cruz" with components=country:ES will return Santa Cruz de Tenerife in Canary Islands, Spain. Request:
https://maps.googleapis.com/maps/api/geocode/json?address=santa+cruz&components=country:ES&key=YOUR_API_KEY
See this sample: Place Autocomplete Hotel Search for code implementation.
Hope it helps!