- Newest
- Most votes
- Most comments
Results should not be returned from Location Service with an address but no coordinates. Could you provide some examples of this behavior?
Could you also confirm which API you are using? Are you using the new Geocode API? Or the older, SearchPlaceIndexForText API?
Thanks!
Hey there,
It seems that there exists many subcategories in the AWS CLI geocoding method for ALS, so it may be useful if you can explore providing more context data to those unmatched geocode addresses
{ "Country": "string", "Region": "string", "SubRegion": "string", "Locality": "string", "District": "string", "Street": "string", "AddressNumber": "string", "PostalCode": "string" }
Source: https://docs.aws.amazon.com/cli/latest/reference/geo-places/geocode.html
Using the Places family of APIs, you may improve your match rates in the ALS APIs by incorporating geographical context. This includes using bias positions to prioritize nearby locations or applying spatial filters like circles and bounding boxes to constrain the search area. Furthermore, you can refine your queries using various filters provided by the service, such as country codes, place types, business categories, chain affiliations, and cuisine types if you have any of that data on hand.
Sources:
- https://docs.aws.amazon.com/location/latest/developerguide/places-best-practices.html
- https://docs.aws.amazon.com/location/latest/developerguide/places-querying-biasing.html
Perhaps you may also try the new LocationServicePlacesV2 client, it have several useful methods with you may directly invoke with the any data parameters you have like:
- geocode
- reverse_geocode
- search_nearby
- search_text
- suggest
Source: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/geo-places.html
Relevant content
- asked 25 days ago
- asked 2 months ago
- AWS OFFICIALUpdated 2 years ago