Giter VIP home page Giter VIP logo

Comments (6)

JustinCanton avatar JustinCanton commented on June 18, 2024

Hi,

We already support this. You can see in the BaseParameter, which both the GeocodingParameters and ReverseGeocodingParameters inherit from, there is a Languages list.

The reason it is a list is because MapBox support sending multiple languages. In their documentation, they mention this:

More than one value can also be specified, separated by commas, for applications that need to display labels in multiple languages.

Thank you.

from geo.net.

ollie10 avatar ollie10 commented on June 18, 2024

Hello @JustinCanton as you pointed this is exactly the problem, both Countries and Languages list have only getters not setters. The same happens with InCountry of Geo.Here.Models.Parameters.GeocodeParameters.
How can you set these parameters if they are readonly?

Thanks again.

from geo.net.

JustinCanton avatar JustinCanton commented on June 18, 2024

Hello @ollie10,

The list isn't meant to be set. Its a get only list, but that is for the list itself. A consumer is still able to add/remove from the list, they are just not able to assign a new list to the Languages parameter.

For example, this code works as expected:

public GeocodingParameters BuildParameters()
{
    var parameters = new GeocodingParameters();
    parameters.Query = "123 Main Street";
    parameters.Languages.Add(new CultureInfo("fr-FR"));
    parameters.Languages.Add(CultureInfo.CurrentCulture);
    return parameters;
}

But you cannot assign to the list:

public GeocodingParameters BuildParameters()
{
    var parameters = new GeocodingParameters();
    parameters.Query = "123 Main Street";
    var languages = new List<CultureInfo>
    {
        new CultureInfo("fr-FR"),
        CultureInfo.CurrentCulture,
    };
    parameters.Languages = languages;    // Compiler error
    return parameters;
}

I hope this clears up the confusion.

from geo.net.

ollie10 avatar ollie10 commented on June 18, 2024

Hello @JustinCanton, yes sorry, it makes it totally sense!
Anyway I was trying the library as all in one solution for Here, Mapox, Arcgis and eventually Google, but I still see missing parameters that I'm using which are not covered, unfortunately.
After a quick look I saw perhaps missing the show parameter of Here Maps (not connected with Mapbox here), but I suppose it won't be the only one missing, is this correct?

Many thanks!

from geo.net.

JustinCanton avatar JustinCanton commented on June 18, 2024

Hi @ollie10,

You are right, that parameter seems to be missing. I can definitely add that to the parameters for HERE. This was probably added somewhat recently, which is why I don't have support for it. I also notice there is a new field called politicalView in the HERE apis that I can add as well. Please make an issue and I can work on it.

As for any other services, it has been a while since I last combed through to make sure I have all the parameters. If you find anything missing, please feel free to make a ticket and I can add support for it.

Thank you.

from geo.net.

ollie10 avatar ollie10 commented on June 18, 2024

Hi @JustinCanton, count on it, I will review and tell you what's missing to save you some research work
Many thanks

from geo.net.

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.