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

Add distance field to RadarAddress spec and object #264

Open
thedalelakes opened this issue Jan 23, 2023 · 0 comments
Open

Add distance field to RadarAddress spec and object #264

thedalelakes opened this issue Jan 23, 2023 · 0 comments

Comments

@thedalelakes
Copy link

thedalelakes commented Jan 23, 2023

Summary

According to the Radar docs, the following response is supposed to be returned from the GET https://api.radar.io/v1/search/autocomplete endpoint:

{
  "meta": {
    "code": 200
  },
  "addresses": [
    {
      "latitude": 40.70390,
      "longitude": -73.98670,
      "geometry": {
        "type": "Point",
        "coordinates": [-73.98670, 40.70390]
      },
      "placeLabel": "Brooklyn Roasting Company",
      "addressLabel": "25 Jay Street",
      "formattedAddress": "25 Jay Street, Brooklyn, New York, NY 11201 USA",
      "country": "United States",
      "countryCode": "US",
      "countryFlag": "🇺🇸",
      "state": "New York",
      "stateCode": "NY",
      "postalCode": "11201",
      "city": "New York",
      "borough": "Brooklyn",
      "county": "Kings County",
      "neighborhood": "DUMBO",
      "number": "25",
  --> "distance": 5,
      "layer": "place"
    }
  ]
}

Notice how there is a distance field in the response.

However, in the RadarAddress.kt model, also documented here, the distance field is not included.

Please add the distance field to the RadarAddress object.

Code to reproduce

I am using the Flutter package, so I do not have Android-specific reproducible code (since the Flutter package is just calling the platform-specific SDKs under the hood).

Steps to reproduce

Call the autocomplete function, which returns the RadarAddress object, which is missing the distance field, even though the HTTP request returns the distance.

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