API not working with polyline query param?

Is the server down? I’m using the following link, and it’s returning an empty array, should be returning a JSON object with15 stations.
https://api.openchargemap.io/v3/poi/?output=json&polyline=czjaG|zzyN|CmDpHlFfJ[email protected]}[email protected]@[email protected]^_^hZceA[email protected][email protected][email protected]\\[email protected]@hJxnBxU[email protected]][email protected]@hjBpBrrFnIx_E[email protected]@[email protected]@[email protected]@[email protected]|[email protected]@[email protected]~aB|[email protected]@~[email protected]@bDb}[email protected][email protected]_@NftAsKlsBl_A[email protected]{@rF~pE|DmDkObeCfIdvDhTznKvLbpF{T[email protected]{LdkAEmDnHbyCzP[email protected]}Aj_FtBlpCl\\|[email protected]{ApA|[email protected]@[email protected][email protected]\xpAnJz~A^[email protected][|[email protected]@[email protected]]{[email protected]|[email protected]{[email protected]|rA{[email protected][email protected]^[email protected]|[email protected]@eMt}ByFnmFugArhKk^[email protected]~[email protected]|dFvYl_CkD[email protected]AjkAfdEvBfhHfSnGbVrkEh^hhAl[hwA|HpFCh}Cb|@frEp[[email protected][email protected][email protected]~Bd|DpG~B|lC[email protected]sAf[email protected][email protected]@p[email protected]_@b@v}[email protected][email protected]@||@[email protected]~aBx{@[email protected][email protected][email protected]@[email protected]@[email protected]@h[email protected]|dD|[email protected]@Xp^[email protected][p{DmAt_HzF|wA|xAxeDncBbtDhLb{AxDb{[email protected]|[email protected]@}ZtMkG{[email protected]@ftHJf|@aU|[email protected]@~Ic\WgTtuC{RtyAkI~yBKhdBrMrkBkSnaE{[email protected]\\[email protected]@[email protected]@q~B[email protected]@~U{WzX{[email protected]@s[email protected]~vAiA]e\\nWurD[email protected]`[email protected]@[email protected]@}GqWMwfA}NrB&maxresults=100&levelid=3&distance=5&compact=true&verbose=false

Using the same URL in my initial post, I am now getting stations that are in Fort Wayne, IN and Windsor, ON, which have never shown up in my results before using the same request parameters. It’s not an empty array any longer, but the results are still off. Could it be an issue with the polyline encoding?

Hi Mike, looks like a temporary caching glitch. The API call is returning results for that query currently. I only get 3 stations though, maybe need to adjust the filter on max distance or level.

So your polyline looks OK:

And it will sample results near (within 5 miles) of the polyline from this set (I’ve filtered on connector types):

I’d remove your Level filter to begin with as you will exclude results where power level is unknown. Data will variously have fields unpopulated such as connection type, level, power kw etc so any filters mean you are dropping anything that doesn’t have that data populated.

Thanks Christopher. The polyline should be a route from Detroit to Chicago, so I’ll have to investigate why the encoding (fetched from google directions api) gave me a route from Detroit to somewhere in Indiana. Possibly an issue with something unrelated to openchargemaps API. Thanks for investigating.

1 Like