Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LatLngBounds not supported in geocoder ? #78

Closed
luigidc25 opened this issue Apr 5, 2017 · 1 comment
Closed

LatLngBounds not supported in geocoder ? #78

luigidc25 opened this issue Apr 5, 2017 · 1 comment

Comments

@luigidc25
Copy link

When trying to set bounds to find a street in Hamburg and not the Bering Strait (Sea), I don't get any response from geocoder.

{ address: 'behringstraße',
language: 'de-DE',
region: 'de',
bounds:	{ 
	northeast: { lat: 53.5760189802915, lng: 9.841728980291503 },
	southwest: { lat: 53.5733210197085, lng: 9.839031019708498 }
	} 
}

As I don't use Promises, I can not see what's going wrong inside callback function.

So basically, are LatLngBounds not supported in Node.js client?

@luigidc25
Copy link
Author

Ok, I figured it out. It only works this way:

{ address: 'behringstraße',
language: 'de-DE',
region: 'de',
bounds: { 
  north: 53.5760189802915,
  east: 9.841728980291503,
  south: 53.5733210197085,
  west: 9.839031019708498 } 
}

My fault, sorry.

sim642 added a commit to sim642/google-maps-services-js that referenced this issue Aug 12, 2017
bounds parameter structure was modified by 8c51dab.
Issue googlemaps#78 was possibly caused by this discrepancy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant