Skip to content

[Feature] Function taking string as input, retrieves the BBox for that #25

Open

Description

@Rubix982

Is your feature request related to a problem? Please describe.
It's not always feasible for humans to know the coordinates of a location. Numbers are already harder to remember, more so longer floating values like coordinates, and it can be annoying for users to go and handpick the coordinates. However, it is very easy to remember the names of locations, e.g., 'Cairo, Egypt'.

This function will return a bounding box of that location, which can then be fed into the API for the Mapillary Python SDK, for which results can be returned as desired.

Describe the solution you'd like
Some function that does all the underlying location -> coordinates logic at the low level. Either we make a utility function that users can use, or we make something as simple as the solution that osmnx suggests, which is just taking in a string, and outputting some results for that, not bothering users deal with the numerical logic as well

Describe alternatives you've considered
NA

Additional context
This idea was slightly discussed in the 1st Maintainer Meeting on the 24th of June

Activity

  1. changed the title [-][Feature] Implementing a function that takes a string as an input, and retrieves the bounding box for that[/-] [+][Feature] Function taking string as input, retrieves the BBox for that[/+] on Jun 24, 2021
  2. Rubix982 commented on Jul 15, 2021

    @Rubix982
    ContributorAuthor

    Blocker

    Since we are moving forward on Bounding Box aspect, I was looking around to solve this issue, and I found this library, GeoCoder. It provides an abstraction on top of Google APIs and Bing APIs for GeoSpatial data, but it needs an API key of its own.

    I looked at Mapbox's API for Forward and Reverse GeoCoding, it also needs an API key.

  3. cbeddow commented on Jul 20, 2021

    @cbeddow
    Contributor

    It sounds like the way to go here is to make OSMnx a dependency to be able to use the functions here? https://github.com/gboeing/osmnx/blob/main/osmnx/geocoder.py

  4. Rubix982 commented on Jul 20, 2021

    @Rubix982
    ContributorAuthor

    I mentioned osmnx somewhere - but forgot to add here. Thanks for the headsup, @cbeddow!

  5. self-assigned this
    on Jul 20, 2021
  6. added a commit that references this issue on Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureA feature request for the SDK

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions