![]() ![]() If you want the directions to have a specific start point (rather than using the user's current location), you can specify it using the startcoord, startname, and startaddress parameters, which work like the endcoord, endname, and endaddress parameters, respectively. We have previously supported the use of a rriveby as a paramater in the url. We still do so but this is being deprecated so we recommend that you use arrival_time instead. In this case, we're encoding the arrival date/time of August 6, 2016, at 9:00pm in the British Summer Time timezone, encoded in ISO-8601 format ( T21:00+01:00), then URL-encoded. If your destination is an event, you can include the date & time in the link to get directions that will arrive in time. In this case, it's a URL-encoded version of the street address 2-10 Hertford Road, London, N1 5ET. This is also optional, but if you provide it, it will be displayed to the user at the end of the trip to help them find the right door. This is the street address of the destination. In this case it's just a URL-encoded version of The Proud Archivist.Įndaddress=2-10%20Hertford%20Road%2C%20London%2C%20N1%205ET It's optional, but it will make the directions look much nicer if you can include it. This is the business name or nickname of the destination. (The %2C in the middle is a URL-encoded comma.) In this case, we're encoding the latitude 51.537060 and the longitude -0.079179. The end coordinate is the only absolutely necessary part of the link without it Citymapper doesn't know where you want to go. Your code can generate a Citymapper directions link like this: ![]() So we've worked on tools that make it easy for you to launch Citymapper for directions straight from your app. But for your users, finding out how to get to those places is a pain. Let's say that you have an app or website with a database of places. Launch Citymapper for Directions The easiest way for your users to Get Directions ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |