How can I open google map for a specific region - google-maps

I am using google map API to show our locations in a website
The problem:
I search something opening google.com and navigate to map, it is same as the locator on the website. It gives the same result.
When google is opened in local and navigate to map and do the same search, it will navigate to same place however the name is different. Please note it is not that name is in English and French that's the reason it is different. Basically this region on question is disputed over the countries.
Description:
When client opens google in his locale e.g. https://www.google.fr/ and navigates to google map he gets a different result, the name is different for the same place in google map as the place is in the border of 2 countries .
If you open by google.com it will show the widely accepted name whereas if you open google.xx and then open the same location the name will be different.
The locator by default is showing the global name in the website which the client does not want, he is asking for showing the name as displayed when opening from their region.
Is there a way I can set something like a data source or something to show google map based on some particular region.
Help will be appreciated.
Regards

Take a look here.
You can add an optional language parameter to the <script> tag when including the Maps API JavaScript code, specifying the language to use. For example, to display a Maps API application in Japanese, add &language=ja to the <script> tag.

Related

Typeform integrate google map place suggestion api

i want to add google map places suggestion API on typeform specific search text field.
is there possible anyway? because i can not find any way like via JavaScript to embed JavaScript code on typeform or 2nd i try where used this form it's also prevent to return iframe content.
My understanding is that you want to use a google places autocomplete field directly inside a typeform.
Is that right?
At the moment this is not possible on Typeform platform.
One workaround could be an intermediary step before the typeform, like a static HTML page where you present the user with such a field, and pass this data as hidden field to the Typeform.
If you want to restrict people within a certain location to answer your typeform here are some other alternatives:
using google tag manager ask for user's location, and redirect them out of the typeform if it does not fit your requirements
intermediary step to ask for user location (via the browser) and redirect them to the typeform or not
implement Typeform logic on a zipcode or country field.
Hope it helps,
You can also contact Typeform support directly if you have more precise questions.

How to select from autopopulating google maps dropdown using protractor?

I am using protractor with Jasmine framework for automating angular5 application. My developers have used API/created google maps dropdown as mentioned in the link
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete
When user types on the address, google maps API is invoked and lists the places related to search, this will not populate/change any tags of developer tools HTML. So basically when user types address then it will populate the address dropdown and I want to select any address either through mouse/keyboard arrow key. When I am automating, I could reach till passing string to the address web element later it errors saying
No details available for input:'Mumbai'
with the popup displayed on the window. Any help is greatly appreciated.
I tried below code,
browser.actions().mouseMove(element(by.id('fromAddress-input')).sendKeys("Mumbai")).perform();
browser.actions().sendKeys(protractor.Key.ENTER).perform();
browser.actions().sendKeys(protractor.Key.ARROW_DOWN).perform();
browser.actions().sendKeys(protractor.Key.ENTER).perform();
First you need to switch to the Iframe that contains the elements you want, use this to change to the Iframe:
var driver = browser.driver;
var loc = by.tagName('iframe');
var el = driver.findElement(loc);
browser.switchTo().frame(el);
Create a function with this code and place after you load the page.
Then your code will work but remove the first enter, do this for example:
browser.actions().mouseMove(element(by.id('fromAddress-input')).sendKeys("Mumbai")).perform();
browser.actions().sendKeys(protractor.Key.ARROW_DOWN).perform();
browser.actions().sendKeys(protractor.Key.ENTER).perform();
change back to the main frame using this:
browser.switchTo().defaultContent();

Link to an address on Here Maps?

Is it possible to link to a specific address on https://wego.here.com as you can with Google maps like this: https://www.google.com/maps?q=221b+Baker+Street%2C+London ?
You can do the same by using Places and locating your place and getting the shortened here link to it. Please see the image attached. You can also add locations to your collection and later get the links to them.
Edit (from comment):
You can do it programmatically by appending your search term like this
https://wego.here.com/search/221b-Baker-Street%2C-London

Google Maps bicycling route

I'm using the following link to open directions from one point to another on Google Maps:
https://www.google.com/maps/?saddr=[one-point]&daddr=[another]
I would like to open the bicycling directly. Which link should I use or which parameter should I add? Adding &mode=bicycling does not seem to work.
Perhaps this has changed since you first asked, but I just followed your link, clicked the Cycling Icon, and then copied the resulting URL, which seems to do what you're after.
Comparing the two URLs, the only difference I see is the addition of !3e1 on the end of a standard "directions" URL.

Adding a Place in Google Maps through KML

Is it possible for me to do this: people will input the name of a place in my site's textbox and then upon submission, that place will be placed in the database, have my site's embedded google map updated (display all the original places and the added one) and can be toggled?
Currently, I already had a working code of getting the latitude and longitude of a certain place. Placing that information in the database is also done. I can also generate a KML file from my latlng-database. What I wanted is to have the generated kml used by my website's map to get the necessary points and be toggled whether to be displayed or not and will reflect any added area/place. To be more specific, adding a place is only by KML file, meaning the textbox in the site will be added depending on which KML the user will want to change.
Or is it better to use OpenLayers?
Thanks!