# Toll API will work Website

**URL:** <https://opendataforum.transport.nsw.gov.au/t/toll-api-will-work-website/2085>\
**Category:** Uncategorized\
**Created:** [August 10, 2020, 3:09pm UTC](https://opendataforum.transport.nsw.gov.au/t/toll-api-will-work-website/2085 "2020-08-10T15:09:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![suresht](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@suresht](https://opendataforum.transport.nsw.gov.au/u/suresht)\
**Post date:** [August 10, 2020, 3:09pm UTC](https://opendataforum.transport.nsw.gov.au/t/toll-api-will-work-website/2085/1 "2020-08-10T15:09:11Z")

</div>

Hello,

I want to integrate the [Toll Upgrade v2] API in my website for getting toll charge. As I read doc of this API, I also need Polyline of pickup and drop locations. How I can get this polyline ? And please also let me know this Toll V2 will work with website?

Thanks

---

<div class="post-metadata">

**Author:** ![suresht](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@suresht](https://opendataforum.transport.nsw.gov.au/u/suresht)\
**Post date:** [August 12, 2020, 4:59pm UTC](https://opendataforum.transport.nsw.gov.au/t/toll-api-will-work-website/2085/2 "2020-08-12T16:59:44Z")

</div>

Hello,

Any one can reply on my query?

Thanks

---

<div class="post-metadata">

**Author:** ![jayen](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jayen/32/208_2.png) [@jayen](https://opendataforum.transport.nsw.gov.au/u/jayen)\
**Post date:** [August 13, 2020, 11:32am UTC](https://opendataforum.transport.nsw.gov.au/t/toll-api-will-work-website/2085/3 "2020-08-13T11:32:08Z")

</div>

I believe the /route endpoint will give you the polyline: [https://opendata.transport.nsw.gov.au/node/7407/exploreapi#!/pricing/getRoutes](https://opendata.transport.nsw.gov.au/node/7407/exploreapi#!/pricing/getRoutes)

---

<div class="post-metadata">

**Author:** ![suresht](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@suresht](https://opendataforum.transport.nsw.gov.au/u/suresht)\
**Post date:** [August 19, 2020, 2:02pm UTC](https://opendataforum.transport.nsw.gov.au/t/toll-api-will-work-website/2085/4 "2020-08-19T14:02:11Z")

</div>

Hello Jayen,

Thanks for reply. I have checked route endpoint api but not getting any Poly line. I am getting below response and there is no polyline in this response

{  
“routes”: [  
{  
“geometry”: “jrxmEsidz[??”,  
“distance”: 0,  
“duration”: 0,  
“minChargeInCents”: 0,  
“maxChargeInCents”: 0,  
“summary”: “Bellevue Road”,  
“tollsCharged”: ,  
“isCheapest”: true,  
“isShortest”: true,  
“isQuickest”: true  
}  
]  
}

Any other way for getting Polyline?

Thanks

---

<div class="post-metadata">

**Author:** ![jayen](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jayen/32/208_2.png) [@jayen](https://opendataforum.transport.nsw.gov.au/u/jayen)\
**Post date:** [August 19, 2020, 10:06pm UTC](https://opendataforum.transport.nsw.gov.au/t/toll-api-will-work-website/2085/5 "2020-08-19T22:06:49Z")

</div>

routes[0].geometry is a polyline: jrxmEsidz[??

albeit, the line has two points which are the same.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/nsw/original/1X/751132e7f0bd362bb02bb9218c2e1520867e328b.png)
