Giter Site home page Giter Site logo

Resolve location endpoint about globalping HOT 6 CLOSED

jsdelivr avatar jsdelivr commented on May 24, 2024
Resolve location endpoint

from globalping.

Comments (6)

jimaek avatar jimaek commented on May 24, 2024

To clarify all of the above is supposed to get eaten by a single input "location". Its not different parameters, they are all examples the user should be able to pass to a single input and get back a resolved json of correctly formatted location parameters that the /measurement endpoint can process.

So its a conversion of 1 magic input to many typed inputs

from globalping.

zarianec avatar zarianec commented on May 24, 2024

Summary of internal discussion:

  1. Build additional probe client metadata object index that will contain all the possible values user can do "magic" queries over.
  2. Maintain manual aliases for some locations like United States of America -> USA
  3. Simulate partial match using String.contains() filter

New probe client metadata object:

{
    "location": {
        "continent": "EU",
        "region": "western-europe"
        "country": "UK",
        "state": "TX"
        "city": "frankfurt at main"
        "isp": "Amazon.com ISP Provider"
    },
    "index": [ "europe", "united kingdom", "western europe", "texas", "frankfurt at main", "amazon.com isp provider" ],
}

from globalping.

jimaek avatar jimaek commented on May 24, 2024

Manual aliases we should add:

  • USA = us
  • England = uk
  • AWS = amazon.com inc.
  • united states = us
  • vultr = choopa llc
  • other?

from globalping.

patrykcieszkowski avatar patrykcieszkowski commented on May 24, 2024
  • other?

I don' think we discussed that - do we want to include both ISO and full state/country/continent formats?

from globalping.

patrykcieszkowski avatar patrykcieszkowski commented on May 24, 2024
  • GB = united kingdom
  • northern ireland = GB

from globalping.

jimaek avatar jimaek commented on May 24, 2024

do we want to include both ISO and full state/country/continent formats

Yes, the user should be able to write "Germany" and it should automatically convert to "DE". I have it as an example input in the task. So all those inputs should work correctly

from globalping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.