# How to

**URL:** https://opendataforum.transport.nsw.gov.au/c/how-to/8.md

[Latest](https://opendataforum.transport.nsw.gov.au/latest.md) · [Categories](https://opendataforum.transport.nsw.gov.au/categories.md)

---

## [About the How to category](https://opendataforum.transport.nsw.gov.au/t/about-the-how-to-category/35)

<div class="topic-metadata">

**Author:** [@tfnswadmin](https://opendataforum.transport.nsw.gov.au/u/tfnswadmin)\
**Replies:** 0\
**Last updated:** [April 18, 2016, 4:24am UTC](https://opendataforum.transport.nsw.gov.au/t/about-the-how-to-category/35 "2016-04-18T04:24:00Z")

</div>

Posts that describe how to set up, configure, or use Open Data or the API Gateway.

---

## [React frontend only app for fetching data](https://opendataforum.transport.nsw.gov.au/t/react-frontend-only-app-for-fetching-data/8597)

<div class="topic-metadata">

**Author:** [@sukhjinder.saini](https://opendataforum.transport.nsw.gov.au/u/sukhjinder.saini)\
**Replies:** 1\
**Last updated:** [April 9, 2026, 2:58am UTC](https://opendataforum.transport.nsw.gov.au/t/react-frontend-only-app-for-fetching-data/8597 "2026-04-09T02:58:47Z")

</div>

I am working on frontend only react app where I need to get data from “https://api.transport.nsw.gov.au/v1/live/hazards/“ but it gives me CORS issues, is it necessary to make the api call through a server?

---

## [Fuel API InternalServerError](https://opendataforum.transport.nsw.gov.au/t/fuel-api-internalservererror/8503)

<div class="topic-metadata">

**Author:** [@sengwannabe](https://opendataforum.transport.nsw.gov.au/u/sengwannabe)\
**Replies:** 2\
**Last updated:** [March 30, 2026, 12:48am UTC](https://opendataforum.transport.nsw.gov.au/t/fuel-api-internalservererror/8503 "2026-03-30T00:48:08Z")

</div>

Hi, I am working with the Fuel API, and been able to attain my access token. However, subsequent calls to get the reference data consistently results in a status 500 error, InternalServerError. Below is the execution to …

---

## [Is the API hub closed to new sign ups?](https://opendataforum.transport.nsw.gov.au/t/is-the-api-hub-closed-to-new-sign-ups/6918)

<div class="topic-metadata">

**Author:** [@danish](https://opendataforum.transport.nsw.gov.au/u/danish)\
**Replies:** 1\
**Last updated:** [October 12, 2025, 11:33pm UTC](https://opendataforum.transport.nsw.gov.au/t/is-the-api-hub-closed-to-new-sign-ups/6918 "2025-10-12T23:33:13Z")

</div>

I’ve tried following the links to sign up through the data portal, however every link is broken. It appears that there is no way to sign up for a new API key?

---

## [Api quota](https://opendataforum.transport.nsw.gov.au/t/api-quota/5096)

<div class="topic-metadata">

**Author:** [@mattigins](https://opendataforum.transport.nsw.gov.au/u/mattigins)\
**Replies:** 3\
**Last updated:** [October 3, 2025, 7:18am UTC](https://opendataforum.transport.nsw.gov.au/t/api-quota/5096 "2025-10-03T07:18:53Z")

</div>

Is there a way for me to check how many requests I’ve sent for the day, or is this something I’ll have to manage myself by logging requests I send? If I need to manage it myself, at what time does the counter reset and …

---

## [How Can GPS Coordinates Be Effectively Used in Real-Time Transport Data to Improve User Experience?](https://opendataforum.transport.nsw.gov.au/t/how-can-gps-coordinates-be-effectively-used-in-real-time-transport-data-to-improve-user-experience/5029)

<div class="topic-metadata">

**Author:** [@AbhishekValdas](https://opendataforum.transport.nsw.gov.au/u/AbhishekValdas)\
**Replies:** 0\
**Last updated:** [February 9, 2025, 10:45pm UTC](https://opendataforum.transport.nsw.gov.au/t/how-can-gps-coordinates-be-effectively-used-in-real-time-transport-data-to-improve-user-experience/5029 "2025-02-09T22:45:18Z")

</div>

I’ve been using the tool provided by Transport NSW for accessing real-time data, and I have a question about improving how GPS coordinates are utilized in this context. It seems like the tool could greatly benefit from a…

---

## [Opal patronage authentication issues](https://opendataforum.transport.nsw.gov.au/t/opal-patronage-authentication-issues/4487)

<div class="topic-metadata">

**Author:** [@gus](https://opendataforum.transport.nsw.gov.au/u/gus)\
**Replies:** 0\
**Last updated:** [September 12, 2024, 12:26pm UTC](https://opendataforum.transport.nsw.gov.au/t/opal-patronage-authentication-issues/4487 "2024-09-12T12:26:43Z")

</div>

Hi all, Wondering if anyone is able to assist with authenticating with Opal Patronage. I am using the standard ‘Authorization’:'‘apiKey {key}’ header which works successfully for GTFS and RT feeds. I’ve also added the …

---

## [GTFS static trains day information](https://opendataforum.transport.nsw.gov.au/t/gtfs-static-trains-day-information/4311)

<div class="topic-metadata">

**Author:** [@gmccabe](https://opendataforum.transport.nsw.gov.au/u/gmccabe)\
**Replies:** 2\
**Last updated:** [March 15, 2024, 8:54am UTC](https://opendataforum.transport.nsw.gov.au/t/gtfs-static-trains-day-information/4311 "2024-03-15T08:54:47Z")

</div>

Hi, The static GTFS does not include train data in calendar file. Where can I find this info in a static csv or txt format?

---

## [App Endorsement](https://opendataforum.transport.nsw.gov.au/t/app-endorsement/2664)

<div class="topic-metadata">

**Author:** [@Mohamed](https://opendataforum.transport.nsw.gov.au/u/Mohamed)\
**Replies:** 2\
**Last updated:** [March 8, 2022, 3:10am UTC](https://opendataforum.transport.nsw.gov.au/t/app-endorsement/2664 "2022-03-08T03:10:30Z")

</div>

I was wondering about the process to get my app endorsed and added to this list: https://opendata.transport.nsw.gov.au/transport-nsw-endorsed-apps, I tried to find something here but couldn’t, would be great if someone c…

---

## [Historic Pricing](https://opendataforum.transport.nsw.gov.au/t/historic-pricing/2561)

<div class="topic-metadata">

**Author:** [@mathewp](https://opendataforum.transport.nsw.gov.au/u/mathewp)\
**Replies:** 1\
**Last updated:** [October 21, 2021, 2:38am UTC](https://opendataforum.transport.nsw.gov.au/t/historic-pricing/2561 "2021-10-21T02:38:22Z")

</div>

Hey there! Was wondering if the Toll Calculator API uses historic pricing? Like if there is a change in toll pricing and I look at a departure time that was before that change, will it use the pricing that was valid in …

---

## [Dataset - school speed zones - automation](https://opendataforum.transport.nsw.gov.au/t/dataset-school-speed-zones-automation/2557)

<div class="topic-metadata">

**Author:** [@consat](https://opendataforum.transport.nsw.gov.au/u/consat)\
**Replies:** 1\
**Last updated:** [October 13, 2021, 12:30am UTC](https://opendataforum.transport.nsw.gov.au/t/dataset-school-speed-zones-automation/2557 "2021-10-13T00:30:37Z")

</div>

Speed Zones | TfNSW Open Data Hub and Developer Portal Can be downloaded using basic-auth for certain uri:s but how do I apply for correct API-key - nothing really matches? Found multiple uri:s https://opendata.transp…

---

## [Double Backing Route?](https://opendataforum.transport.nsw.gov.au/t/double-backing-route/2541)

<div class="topic-metadata">

**Author:** [@mathewp](https://opendataforum.transport.nsw.gov.au/u/mathewp)\
**Replies:** 1\
**Last updated:** [October 1, 2021, 12:07am UTC](https://opendataforum.transport.nsw.gov.au/t/double-backing-route/2541 "2021-10-01T00:07:23Z")

</div>

Hey there, so we’ve had an interesting scenario occur where our polyline starts from one side and doubles back to almost the same location. Here is our polyline: j{{lEsmvv\[QtM{CwXmDk@aVmCNkD~@wJLqFhIybApDyIlGaMtE}j@fFX…

---

## [Issue getting token to work](https://opendataforum.transport.nsw.gov.au/t/issue-getting-token-to-work/2536)

<div class="topic-metadata">

**Author:** [@radiomedia](https://opendataforum.transport.nsw.gov.au/u/radiomedia)\
**Replies:** 3\
**Last updated:** [September 16, 2021, 2:53am UTC](https://opendataforum.transport.nsw.gov.au/t/issue-getting-token-to-work/2536 "2021-09-16T02:53:47Z")

</div>

So I am trying to fetch the NSW fuel data, and I am running into issues about how we authorise and then use that token in the next step. Basically the token I received in the first step { "refresh\_token\_expires\_in": …

---

## ["Could not match the trace with the given waypoints." Error?](https://opendataforum.transport.nsw.gov.au/t/could-not-match-the-trace-with-the-given-waypoints-error/2487)

<div class="topic-metadata">

**Author:** [@mathewp](https://opendataforum.transport.nsw.gov.au/u/mathewp)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 6:32am UTC](https://opendataforum.transport.nsw.gov.au/t/could-not-match-the-trace-with-the-given-waypoints-error/2487 "2021-07-21T06:32:14Z")

</div>

Hi there, I was wondering why exactly I am getting the following response for the following Polyline: Polyline: b\_qoEs\`gv\[eFyIxl@oMxdAuGdOuhAfA}rAhl@wt@jA\]vfAoYx{Aa{@iHaz@{tAspBqyAwoBmaBmdBioByhAu\_CuKkkBevAovB\_y@uzBym…

---

## [Can't get an API key](https://opendataforum.transport.nsw.gov.au/t/cant-get-an-api-key/2478)

<div class="topic-metadata">

**Author:** [@Safequadrant](https://opendataforum.transport.nsw.gov.au/u/Safequadrant)\
**Replies:** 3\
**Last updated:** [July 19, 2021, 6:42am UTC](https://opendataforum.transport.nsw.gov.au/t/cant-get-an-api-key/2478 "2021-07-19T06:42:01Z")

</div>

Can anyone help please? I have registered for access to opendata and have been trying to get an API key so that I can access the marine datasets Search | TfNSW Open Data Hub and Developer Portal for viewing in QGIS and…

---

## [Constant "Requested waypoint parameter could not be matched." error.](https://opendataforum.transport.nsw.gov.au/t/constant-requested-waypoint-parameter-could-not-be-matched-error/2453)

<div class="topic-metadata">

**Author:** [@mathewp](https://opendataforum.transport.nsw.gov.au/u/mathewp)\
**Replies:** 5\
**Last updated:** [July 21, 2021, 6:41am UTC](https://opendataforum.transport.nsw.gov.au/t/constant-requested-waypoint-parameter-could-not-be-matched-error/2453 "2021-07-21T06:41:53Z")

</div>

Hi there, I am trying to get the tolls on the following polyline. Actual polyline f{flE{oow\[O\`Oy^}Bi\]\`f@r\`@td@dc@fs@nYl\\zd@n\_@hWiN~eAgg@nlAos@niAqeAjfAigAt^a\[ll@{f@bTuNRQh}@y\_@|g@aCjl@yIvQuLjGkGrcAxPdyBdBr^sEdWm\_@ty@o…

---

## [Unexpected token in JSON at position](https://opendataforum.transport.nsw.gov.au/t/unexpected-token-in-json-at-position/2421)

<div class="topic-metadata">

**Author:** [@shakyavi](https://opendataforum.transport.nsw.gov.au/u/shakyavi)\
**Replies:** 2\
**Last updated:** [August 5, 2023, 9:09pm UTC](https://opendataforum.transport.nsw.gov.au/t/unexpected-token-in-json-at-position/2421 "2023-08-05T21:09:59Z")

</div>

The Open Data Toll Calculator API v2 toll\_calc/match returns error \> { "error": "Unexpected token J in JSON at position 397" } The request JSON is as follows: \> { \> "polyline": "zeymE\_xny\[zHaG\`CzCTBmAfBW\`@Yf@\_AzBi@…

---

## [Requested waypoint parameter could not be matched](https://opendataforum.transport.nsw.gov.au/t/requested-waypoint-parameter-could-not-be-matched/2408)

<div class="topic-metadata">

**Author:** [@vipul.agheda](https://opendataforum.transport.nsw.gov.au/u/vipul.agheda)\
**Replies:** 6\
**Last updated:** [May 14, 2021, 6:14am UTC](https://opendataforum.transport.nsw.gov.au/t/requested-waypoint-parameter-could-not-be-matched/2408 "2021-05-14T06:14:44Z")

</div>

Hi, I am performing the following steps to get the toll amount. Pass origin and destination in Google Directions API request and retrieve a polyline from the response. Pass the polyline to Match API request and get th…

---

## [How to use api](https://opendataforum.transport.nsw.gov.au/t/how-to-use-api/2068)

<div class="topic-metadata">

**Author:** [@nicoali](https://opendataforum.transport.nsw.gov.au/u/nicoali)\
**Replies:** 1\
**Last updated:** [July 27, 2020, 1:53am UTC](https://opendataforum.transport.nsw.gov.au/t/how-to-use-api/2068 "2020-07-27T01:53:03Z")

</div>

i added an app on my account. how i can use the curl -X GET --header ‘Accept: application/json’ --header ‘Authorization: apikey myapi’ ‘https://api.transport.nsw.gov.au/v1/live/cameras’ to add it in carto instance?

---

## [Real time trip update in alteryx](https://opendataforum.transport.nsw.gov.au/t/real-time-trip-update-in-alteryx/1975)

<div class="topic-metadata">

**Author:** [@newboots](https://opendataforum.transport.nsw.gov.au/u/newboots)\
**Replies:** 9\
**Last updated:** [April 20, 2020, 9:05am UTC](https://opendataforum.transport.nsw.gov.au/t/real-time-trip-update-in-alteryx/1975 "2020-04-20T09:05:56Z")

</div>

Hi guys I want to do a predictive analysis in alteryx using Public Transport - Realtime Trip Updates API. I use request URL and api key but keep getting 401 error. Calling application not authorized. Any help is welcome …

---

## [Registration via API](https://opendataforum.transport.nsw.gov.au/t/registration-via-api/1936)

<div class="topic-metadata">

**Author:** [@fordesmith](https://opendataforum.transport.nsw.gov.au/u/fordesmith)\
**Replies:** 2\
**Last updated:** [December 4, 2024, 11:04pm UTC](https://opendataforum.transport.nsw.gov.au/t/registration-via-api/1936 "2024-12-04T23:04:19Z")

</div>

Is it possible to register a car via API (that is, rather than using the SNSW user interface)?

---

## [Using Trip Planner example issue](https://opendataforum.transport.nsw.gov.au/t/using-trip-planner-example-issue/1650)

<div class="topic-metadata">

**Author:** [@Scout.Iris](https://opendataforum.transport.nsw.gov.au/u/Scout.Iris)\
**Replies:** 3\
**Last updated:** [May 25, 2019, 1:28am UTC](https://opendataforum.transport.nsw.gov.au/t/using-trip-planner-example-issue/1650 "2019-05-25T01:28:30Z")

</div>

Hi eveyone, hoping that someone can help this first time GTFS user on the Trip planner example here: I have copied the full example PHP from the bottom of the page, and getting the following when running from http://l…

---

## [Open Data Handbook for Users - call out for contributers](https://opendataforum.transport.nsw.gov.au/t/open-data-handbook-for-users-call-out-for-contributers/1622)

<div class="topic-metadata">

**Author:** [@julians](https://opendataforum.transport.nsw.gov.au/u/julians)\
**Replies:** 0\
**Last updated:** [April 22, 2019, 4:25am UTC](https://opendataforum.transport.nsw.gov.au/t/open-data-handbook-for-users-call-out-for-contributers/1622 "2019-04-22T04:25:38Z")

</div>

Hi all, Do you have an area of expertise with open data that you would be willing to share with others? I’m developing a handbook for new users of Open Data, for example someone entering into a hackathon for the first …

---

## [Suburb name of Bus stop](https://opendataforum.transport.nsw.gov.au/t/suburb-name-of-bus-stop/1359)

<div class="topic-metadata">

**Author:** [@Muthu](https://opendataforum.transport.nsw.gov.au/u/Muthu)\
**Replies:** 3\
**Last updated:** [May 19, 2025, 11:35pm UTC](https://opendataforum.transport.nsw.gov.au/t/suburb-name-of-bus-stop/1359 "2025-05-19T23:35:06Z")

</div>

Hi mates, Can anyone help me finding Suburb name of given Stop ID? For example, for bus route 700 (Blacktown to Parramatta) i can get all stops from GTFS stops.txt file along with stop name (like “Good st after Amos s…

---

## [Sample API WebRequests](https://opendataforum.transport.nsw.gov.au/t/sample-api-webrequests/1249)

<div class="topic-metadata">

**Author:** [@SMDauto](https://opendataforum.transport.nsw.gov.au/u/SMDauto)\
**Replies:** 1\
**Last updated:** [March 31, 2018, 7:34am UTC](https://opendataforum.transport.nsw.gov.au/t/sample-api-webrequests/1249 "2018-03-31T07:34:51Z")

</div>

I’m new to open data @ transport NSW and I am having some trouble constructing web requests to get responses in JSON format. Can anyone post some sample web request strings (related to any of the real time APIs) that wi…

---

## [Trip Planner API - need help](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-need-help/1124)

<div class="topic-metadata">

**Author:** [@unionbank](https://opendataforum.transport.nsw.gov.au/u/unionbank)\
**Replies:** 6\
**Last updated:** [December 28, 2017, 12:38pm UTC](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-need-help/1124 "2017-12-28T12:38:05Z")

</div>

Hello, I’m using the API explorer on the site but for some reason, whenever I click ‘Try it out’ it doesn’t work for me - I keep getting 401, ‘The calling application is unauthenticated’. I have selected my application …

---

## [Filter params departure\_mon](https://opendataforum.transport.nsw.gov.au/t/filter-params-departure-mon/1063)

<div class="topic-metadata">

**Author:** [@devguy](https://opendataforum.transport.nsw.gov.au/u/devguy)\
**Replies:** 3\
**Last updated:** [October 17, 2017, 9:34am UTC](https://opendataforum.transport.nsw.gov.au/t/filter-params-departure-mon/1063 "2017-10-17T09:34:45Z")

</div>

GET /departure\_mon can you “filter” by adding params in the url request For example: how do you limit the returned results to just “BUS” ?

---

## [/departure\_mon how to request more results,](https://opendataforum.transport.nsw.gov.au/t/departure-mon-how-to-request-more-results/1051)

<div class="topic-metadata">

**Author:** [@devguy](https://opendataforum.transport.nsw.gov.au/u/devguy)\
**Replies:** 1\
**Last updated:** [October 11, 2017, 5:02am UTC](https://opendataforum.transport.nsw.gov.au/t/departure-mon-how-to-request-more-results/1051 "2017-10-11T05:02:31Z")

</div>

GET /departure\_mon how to request more results, Morning, Can anyone advise on how I might get more results back from a single departure\_mon request. (depArrMacro=dep) Is there anything like a finish time or a…

---

## [Trip Planner API Alerts by Operator](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-alerts-by-operator/903)

<div class="topic-metadata">

**Author:** [@bensutter](https://opendataforum.transport.nsw.gov.au/u/bensutter)\
**Replies:** 1\
**Last updated:** [June 2, 2017, 12:39am UTC](https://opendataforum.transport.nsw.gov.au/t/trip-planner-api-alerts-by-operator/903 "2017-06-02T00:39:55Z")

</div>

I’m currently using the Trip Planner API - add\_info endpoint for travel alerts. I am using the ‘itdLPxx\_selOperator’ param to restrict alerts based on operators, however for every value I am getting an empty response se…

---

## [Data structure and description of Trip\_Id, Service\_Id, vehicle\_id](https://opendataforum.transport.nsw.gov.au/t/data-structure-and-description-of-trip-id-service-id-vehicle-id/615)

<div class="topic-metadata">

**Author:** [@mkhezrian](https://opendataforum.transport.nsw.gov.au/u/mkhezrian)\
**Replies:** 3\
**Last updated:** [February 20, 2017, 6:05am UTC](https://opendataforum.transport.nsw.gov.au/t/data-structure-and-description-of-trip-id-service-id-vehicle-id/615 "2017-02-20T06:05:58Z")

</div>

I real technical specs but I couldn’t find any document how these ids have been encoded for all transport modes along with all constant values ( there are some descriptions for serviceId and tripId but the descriptions …

[Next page](https://opendataforum.transport.nsw.gov.au/c/how-to/8.md?page=1)
