Coder Social home page Coder Social logo

Comments (4)

valentasm1 avatar valentasm1 commented on August 12, 2024

No i dont. You could try playing around with server side samples.
I have feeling that this functionality doenst exist.
@cyberyaga could you check if it possible to provide locations instead name for Routes?
@cyberyaga made pull request for this functionality so maybe he know more.

from blazorgooglemaps.

ozanyasindogan avatar ozanyasindogan commented on August 12, 2024

Thank you. Looking at the directions Api's documentation, looks like this is possible:

https://developers.google.com/maps/documentation/directions/intro

waypoints — Specifies an array of intermediate locations to include along the route between the origin and destination points as pass through or stopover locations. Waypoints alter a route by directing it through the specified location(s). The API supports waypoints for these travel modes: driving, walking and bicycling; not transit. You can specify waypoints using the following values:
Latitude/longitude coordinates (lat/lng): an explicit value pair. (-34.92788%2C138.60008 comma, no space)
Place ID: The unique value specific to a location. This value is only available only if the request includes an API key or Google Maps Platform Premium Plan client ID (ChIJGwVKWe5w44kRcr4b9E25-Go.
Address string (Charlestown, Boston,MA)
Encoded polyline that can be specified by a set of any of the above. (enc:lexeF{~wsZejrPjtye@:)
For examples and more information on waypoints, see the guide to waypoints below.

I guess this is not covered yet in your api?

Ex:
https://maps.googleapis.com/maps/api/directions/json?
origin=sydney,au&destination=perth,au
&waypoints=via:-37.81223%2C144.96254%7Cvia:-34.92788%2C138.60008
&key=YOUR_API_KEY

from blazorgooglemaps.

valentasm1 avatar valentasm1 commented on August 12, 2024

I couldnt say if you are right. If you say so probably you are right. Maybe need some class or some json atributes. Implement new features is quite easy if you know exactly how missing objects looks like.
Would be wonderfull if you could make pull request.

from blazorgooglemaps.

ozanyasindogan avatar ozanyasindogan commented on August 12, 2024

I just changed it to LatLngLiteral and it's working fine, nothing else needed.

waypoints.Add(new DirectionsWaypoint() { Location = new LatLngLiteral((double)LoadingPlaces[i].GeoData.Longitude, (double)LoadingPlaces[i].GeoData.Latitude), Stopover = true });

from blazorgooglemaps.

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.