ColdFusion - Google Maps API Key CFIDE reference in code? - google-maps-api-3

In the ColdFusion Administrator interface, there is a place where you can store your Google Maps API Key. The issue I'm having through is trying to figure out HOW to reference this key in code? I don't see anything in the documentation.
Does anyone have any ideas?

It is used automatically in the <cfmap> tag.
<cfmap centeraddress="Los Angeles City Hall, 100 N Main St., Los Angeles, CA" />
Example from: http://www.isummation.com/blog/new-coldfusion-9-feature-cfmap/
Also see: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-m-o/cfmap.html

Related

Here API Places Photos

I have tried both Flutter Here Explore SDK and Rest API to fetch Places Photos from countries like Canada, USA and India but for all these the requests from both SDK and API are returning empty results I.e., zero count for a Place’s WebImage List. Example, if I retrieve Places Detail of Chipotle restaurant in Las Vegas through Flutter Explore SDK, I am able to access Chipotle’s title, address and details attribute but Chipotle’s images list are empty.
Does Here support places’s photos data like Google Places API or TomTom API. I see Here API has this images list field in Places Details section but it does not contain any data for any place In US, Canada or India.
Please advise and let me know if Here supports and provide Places photos and if so for which countries?
I found the issue is with my app_id and app_code where this is a demo id/code picked from https://places.cit.api.here.com/places/# and the URL I used is https://places.cit.api.here.com/places/v1/discover/search?app_code=AJKnXv84fjrb0KIHawS0Tg&app_id=DemoAppId01082013GAL&at=36.047,-115.235&q=Chipotle&callback=placesresponse which returns 0 results for images but If I use the same URL with your app_id and app_code, it returns images like a charm. How to get new app_id and app_code as this domain https://places.cit.api.here.com is no longer providing new app_id/app_code but only appid and apikey. The apikey is not accepted in https://places.cit.api.here.com. Please advise.

Missing Zip Codes in Google APi

We have enables Google Autocomplete on our Website but we have found some zip codes do not register with the API. 60514 will populate Clarendon Hills, IL 60514, but the follow zip codes do not work.
32312 – Tallahassee, FL
48260 – Detroit, MI
10510 – Westchester County, NY
29302 – Spartanburg, SC
24001 – Roanoke, VA
All these zip codes are active and verified from Zip-codes.com. You can even find the zip code in Google Maps but not in the Google API Autocomplete.

What are address26 and address29 in Nominatim?

Occasionally - rarely - a Nominatim search will return a hit with a key "address29" or "address26". There is no mention of such a key in osm, and I can't find any explanation in Nominatim.
Here's an example. Search nominatim for bamako (the capital city of Mali). Among others you'll see:
{"place_id":"104544188","licence":"Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright",
"osm_type":"way","osm_id":"197528638","boundingbox":["47.4519905","47.4523668","-0.5565341","-0.5561207"],"lat":"47.4519905","lon":"-0.5565341",
"display_name":"Bamako, Angers, Maine-et-Loire, Pays de la Loire, Metropolitan France, 49000;49100, France",
"class":"highway","type":"platform","importance":0.2,
"address":{"address26":"Bamako","city":"Angers","county":"Angers","state":"Pays de la Loire","country":"France","postcode":"49000;49100","country_code":"fr"},"namedetails":{"name":"Bamako"}},
In the address field/object you see "address26":"Bamako". What does that mean? the other keys all make sense.
If you access the osm id: (eg, http://nominatim.openstreetmap.org/details?osmtype=W&osmid=197528638), there is no mention of address26.
At the website: https://thefive.sabic.uberspace.de/ they have a number of address26 entries pointing to Nominatim. I don't know what their database represents.
I have come across other Nominatim search results with address29 instead of address26.
If you look at http://taginfo.openstreetmap.org/, you won't find address26 or address29 as keys or tags...
Once in a while you will see a city named "fixme" on an osm map, but at least you have an idea of what's going on there, address2[69] stumps me. Does anyone know why?

How to reliably get county from Google Autocomplete/Details

If I use Google Place Autocomplete for "Alpha Loft Elm" I get an address that includes only level 1 (state) in the administrative areas. But if I autocomplete for the same place using the returned formatted_address, "844 Elm St, Manchester, NH 03101, United States", I get level 2 (county) as well, with a different place-id.
I see the same behavior for other places as well. I see the same behavior from the Place Details API, when I give it the place-id returned in each case.
I need the county, and need to support autocomplete by place name.
The only workaround I've found for this is to use Place Search (textsearch) on the returned formatted_address, then use Place Details on the placeId returned for the address to get the county.
Is there a better approach?
(Also posted as a bug report on gmaps-api-issues.)
So far I am not aware of any other solution then after using Autocomplete to get the accurate address and place_id to use something like the following code to retrieve the "political" structure behind that address.
if (place.place_id) {
var service = new google.maps.places.PlacesService(map);
service.getDetails({placeId: place.place_id}, function (PlaceResult, PlacesServiceStatus) {
console.log(PlaceResult);
});
}

language parameter with here geocoding

i am using the here geocoding and map tiles services.
geocoding search for oran, algeria returns address information in arabic. map tiles for oran, algeria show address information in french. here.com map site for oran, algeria also shows address information in french. i would prefer geocoding information in english. when making my geocoding request i have added "&language=en". information returned in arabic. i have also tried a request but with "&language=fr". information returned in arabic. is it possible to have geocoding information returned in english? and, out of curiosity, since here seems to have the information in french when generating its tiles, is it possible to have geocoding information returned in french?
i notice that for, eg, tokyo, japan, the information is returned in english (or a sort of trans-literated englsh), not japanese. the same is true for, eg, moscow, russia. map information is in english, not cyrillic characters.
the only rule or guidance that i have found in the here documentation regarding language parameters concerns using a language list (&languages= ...)
thanks for any help.
- george ott
When geocoding an address, the language parameter will only alter the exonym for the city and country. Take for example the Grote Markt/Grand Place in the center of Brussels.
If you search for Grand Place - the address is in French
If you search for Grand Place with language=en - the address is in French, the city and country are in English
If you search for Grote Markt - the address is in Dutch
If you search for Grote Markt with language=en - the address is in Dutch, the city and country are in English
If you want to obtain the Dutch name for the French street, you will need to make two requests - firstly a geocoding request to find out the longitude/latitude and then a reverse-geocoding request to find out the local name of a location in the language of your choice.
For example Rue Bouzerki Mohamed/ نهج بوزركي محمد, وهران, الجزائر is a street in Oran:
Geocode the Arabic text to a location like this
Reverse Geocode to get the French name like this
It appears that as a general rule, the primary language is returned by default (for Algeria this is Arabic), but in the cases where a separate script is used an alternative may be returned. For an English language request, the road names in Algeria are returned in French (i.e. the standard 26 letter Roman Alphabet) rather than Arabic script.
The Map Tiler can display bilingual maps as shown below:
lg=FRE&lg2=DUT Map of Brussels at zoom 10
However the roads are only displayed in the primary language
lg=FRE&lg2=DUT Map of Brussels at zoom 17
Presumably this is due to the optimization of the label placements.
For languages with different scripts, both labels are shown
lg=ARA&lg2=FRE Map of Oran at zoom 11
This includes the roads displayed in the secondary language at high zoom
lg=ARA&lg2=FRE Map of Oran at zoom 17
The list of languages available to the lg and lg2 parameters can be found in the Map Tile API Reference. Examples of monolingual and bilingual maps tile can be found in the API Explorer
The lg and lg2 can also be passed to the Maps API For JavaScript as shown:
var mapTileService = platform.getMapTileService({
type: 'base'
}),
bilingualMapLayer = mapTileService.createTileLayer(
'maptile',
'normal.day',
256,
'png8',
{lg: 'ARA', lg2: 'FRE'}
);
map.setBaseLayer(bilingualMapLayer);
Where map is an instance of an H.Map and platform is the
H.service.Platform stub.

Resources