question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PlacesAutoCompleteRequest: locationbias

See original GitHub issue

Hello,

It is not currently possible to add locationbias to PlacesAutoCompleteRequest.

Prefer results in a specified area, by specifying either a radius plus lat/lng, or two lat/lng pairs representing the points of a rectangle. If this parameter is not specified, the API uses IP address biasing by default.

IP bias: Instructs the API to use IP address biasing. Pass the string ipbias (this option has no additional parameters). Point: A single lat/lng coordinate. Use the following format: point:lat,lng. Circular: A string specifying radius in meters, plus lat/lng in decimal degrees. Use the following format: circle:radius@lat,lng. Rectangular: A string specifying two lat/lng pairs in decimal degrees, representing the south/west and north/east points of a rectangle. Use the following format: rectangle:south,west|north,east. Note that east/west values are wrapped to the range -180, 180, and north/south values are clamped to the range -90, 90.

(emphasis and code highlight by me)

Is there any chance you could add it? It would be much appreciated, especially the point type. Thanks!

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
vivetcommented, Dec 12, 2022

Hi I will add it. Probably within the next couple of days.

1reaction
vivetcommented, Dec 14, 2022

I have implemented both the location-bias and the location-restriction. Something is just strange of how Google implemented this, because there seem to be multiple way of accomplishing the same. Nevertheless, you now have all the options Google supports.

I will deploy an updated NuGet soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

Place Autocomplete | Places API
You may bias results to a specified circle by passing a location and a radius parameter. Doing so instructs the Places service to...
Read more >
PlacesAutoCompleteRequest.cs
C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
Read more >
How to Location Bias Google Places Autocomplete?
A GMSCoordinateBounds object biasing the results to a specific area specified by latitude and longitude bounds. NOTE: You cannot completely ...
Read more >
PlacesApi (google-maps-services-java 0.9.3 API)
Creates a new Places Autocomplete request for a given input. ... API requests. location - The latitude/longitude around which to retrieve place information....
Read more >
Index (google-maps-services-java 0.9.4 API)
The accuracy of the estimated location, in meters. ... Add the location of a marker. ... Creates a new Places Autocomplete request for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found