Comments (5)
I tried a couple of them and they all return a value for the "err" arg in the callback function, showing they're invalid place IDs.
Can you try using the latest commit on GitHub?
from google-maps-services-js.
- That works.
- Thank you for the code!
- It failed for me with 0.3.1
I should have included that I was trying to catch the error
googleMapsClient.place(query, (err, res) => {
if (err) {
console.error(err);
done(err);
} else {
console.log(util.inspect(res.json.result, { depth: null }));
// stuff
}
});
but the script was not returning -- anything :)
this worked:
"@google/maps": "git+https://github.com/googlemaps/google-maps-services-js.git",
from google-maps-services-js.
Cool, we should have a new release out soon.
from google-maps-services-js.
I am sorry to reopen this, I must be doing something wrong, because I am having the same problem today -- with the script not returning.
After I re-installed with npm with
"dependencies": {
"@google/maps": "git+https://github.com/googlemaps/google-maps-services-js.git",
I did see an error with "status", and changed my err test to
if (err) {
if (res.json.status === 'NOT_FOUND') {
console.log('skip not found');
done();
} else {
console.error(err);
done(err);
}
} else {
and believe I process several place_id, but I am not sure how many.
Now if I try the problem examples, this one for instance,
'EjJNYWdocmViLCA1NSBBZGFyLCBrc2FyIGhhcnQgZWwgbW9yYWJpdGluZSwgTW9yb2Njbw'
they hang. I tried reinstalling the package with npm again. Any ideas what I am doing wrong?
from google-maps-services-js.
+1 I am getting the same thing on certain IDs. Request just hangs indefinitely until (I think) the browser is timing out the request at 5 minutes. No matter the timeout settings etc. I use in the place request params it just hangs. For example a placeid of "foo" just hangs instead of sending back what I get when I do a request directly in browser which is "INVALID_REQUEST"
from google-maps-services-js.
Related Issues (20)
- PlacesAutocomplete call crashes if the optional location field is present but undefined HOT 2
- Address autocomplete ApiNotActivatedMapError HOT 1
- StreetViewService.getPanorama implementation HOT 2
- Cross-site Request Forgery (CSRF) issue with Axios, replace with fetch? HOT 7
- Add new Pollen APIs HOT 1
- Google RouteMatrix needed. HOT 2
- Dependency url-signature using a version of crypto-js with critical vulnerability HOT 6
- New APIs: Address Validation, Datasets, Places, Routes HOT 4
- Autocomplete prediction type fields should be optional HOT 1
- Rename primary branch to main
- reviews_sort & reviews_no_translations fields are not included in place deatils params HOT 2
- "Place Details (New)" API calls HOT 4
- Directions: Missing type "google.maps.DirectionsStatus" in "google.maps.DirectionsResult" OS:W11 Pro HOT 1
- Cannot find module 'core-js/modules/es.string.replace.js' HOT 5
- Add support for Address Descriptors to Geocoding
- Cross-Origin-Resource-Policy missing from response header of khms0.googleapis.com and khms1.googleapis.com HOT 1
- Error: Cannot find module 'core-js/modules/es.string.replace.js' HOT 10
- Places.placeAutocomplete can't filter by country HOT 1
- 127.0.0.1:22259/main/0/storage/emulated/11/Download/Takeout/Historial de ubicaciones (Rutas)/Timeline Edits.GeoJSON.gpx.html
- Error: Type '"origin" | undefined' is not assignable to type '"origin"' during Build. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-maps-services-js.