Google Maps Geolocation API for China - google-maps-api-3

I am using Google Maps Geolocation API to get location address in china with the help of MCC, MNC, Lac Id and Cell Id.
But Api returns "Not Found" error for all the sets of MCC, MNC, Lac Id and Cell Id of China.
So, is there an issue with Google Api or some other issue?
Please let me know.

Since March 2 2011, China started to block Google HTTPS Server periodically.
The 443 port on Google server was blocked for 15 minutes and available for another 15 minutes as a cycle.
You can try to use http servers instead of https to work properly.

Google Map work was not very good in China.
So i recommend you use Baidu Map instead of Google Map

Related

ADS Data in China?

I have an application that works nicely in the UK, using "https://route.api.here.com/routing/7.2/calculateroute.json" for the routing, and "https://pde.api.here.com/1/index.json" for gathering the list of ADS tiles.
I also need it to work in China. Using "https://route.hereapi.cn/routing/7.2/calculateroute.json" is the replacement for the routing URL, but there is no documentation for the equivalent ADS tile API?
Any URL's I have found don't return any results for the linkId's returned using routing. I have appropriate app id's and codes for both UK and China.
Thanks.
Fleet Telematics ADS isn't available in China yet. China only has very limited services for ADS now.

Google Maps Geocoding API IP Address

Currently I use Google Maps GeoCoding API to get location latitude and longitude from given address. However, the maps doesn't rendered correctly.
I check on the browser console and got following error "API keys with referer restrictions cannot be used with this API"
After check on google search, one of the recommendation is to change the API Key restriction to IP Address restriction.
But since the Geocoding API call is called from the browser, I assume the IP addresses I should registered in Google Console Platform is visitor IP Addresses. Is that correct ? Is anyone experience to set the IP Address restriction successfully ?
Thank you.
You can use Geocoding Service (as mentioned by #geocodezip) when you are trying to geocode an address in the client-side. The behavior, parameters and results of this two APIs are the same.
Sample address: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA
Geocoding Service sample demo: Please check this link
geocoder.geocode({'address': address}, function(results, status) {})
Geocoding API sample request: https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=YOUR_API_KEY
Compare the results! :)
Please note that for web service requests, you'll have to make sure that the address string you are trying to send is properly URL-encoded
Happy coding!

Limit Google map search to shipping ports

I want to limit Google map search only to shipping ports. There are multiple type of places but It does not suggest PORT type.
So far I found this website which only searches within cities having PORTs but I can not find the algorithm as it is a full JavaScript website with ugly codes.
Unfortunately, the Places API doesn't support type port or seaport at the moment. There is a feature request in the Google issue tracker to add these types, you can see it here
https://issuetracker.google.com/issues/110475636
As you can see this request was created on June 20, 2018 and wasn't resolved yet. Please feel free to star the feature request to add your vote and subscribe to further notifications.

How to get traffic from a specific country

I have a website hosted by an USA company.
I set Portugal as destination country of my site in google webmasters
I am using a social network (like facebook, twitter, etc) to advertise the website only to 2 countries: Brazil and Portugal.
But Google analytics only shows that I get only traffic from USA, Russia and others and NONE from Brazil and Portugal
Can somebody hep me here?
If you are not getting any hits from your Country, not even yours, then you have to check that the tracking code is correctly installed.
The best way to check it is by going to your website through your mobile (without wifi), and check if you see your visit in the real-time reports, if you don't see anything, then there is a problem with the code.
Besides from your tracking code being correctly installed. You must certainly have spam. Check your referral reports and look for unusual traffic, like share-buttons, traffic2cash, there are hundreds of spammers.
To keep clean your data you have to create a filter. You can find instruction on how to create this filter here. https://stackoverflow.com/a/28354319/3197362
Hope it helps,

Google Maps geocode service is not working(google blocking our request)

We are using Google Maps geocode service to get Latitude and Longitude for a given address,
We invoke google maps geocode service in a loop for each address(the loop max size is 50 addresses).
we are using this MAPs for State of Texas HHSC Help website (https://www.211texas.org/211/)
Below is service URL that we are using to get Latitude and Longitude.
http://maps.google.com/maps/geo?q=1601%20Rutherford%20Ln,Austin%20TX%2078754&key=ABQIAAAAU6mRnxlKP7D0V5v9DF3PIRT7KmOOtdkA0SYMLaxMRemphasized textpf2Wu2TCRTCqatXcIx0ULuVNHCz_jELYoAgXw&output=csv&oe=utf8&sensor=false
Google thinks this is Unusual traffic from our computer network, but it is not.
If you copy and paste the above link on your browser URL, you will see the below message.
The service is not working and it says
We're sorry...
... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.
See Google Help for more information.
Need help ,
Sorry,If this is not right place to post this issue,
How to contact google on this issue, since its not commercial website issue.
or is there any alternative way to get Latitude and Longitude for given address.
Any insight would be appreciated.
Use the documented endpoint.
The documentation specifies:
http://maps.googleapis.com/maps/api/geocode/output?parameters

Resources