I’m using the polygon query parameter to search for relevant chargers within a city (in this case Vienna), but it fails to return results within the specified area.
My encoded polyline appears to be correct - running it through the Google Polyline Utility generates the correct search area, but when using it as a query parameter and sending an API request it returns chargers from all over Europe.
Here is my request:
param = {
‘polygon’:Polyline given below,
‘maxresults’:XX (I was requesting 100)}
response = requests.get(“https://api.openchargemap.io/v3/poi?key=mykey”, params=param)
chargerdata = json.loads(response.text)
This is done in Python, but the same issue occurs when using the embedded API request on the OCM site
It just returns seemingly random chargers across Europe, some in Portugal, Spain, Italy etc. I have tested using multiple polylines across different locations and it always returns the same list of European chargers.
Any help understanding what the issue is/what I’m doing incorrectly would be greatly appreciated. Thank you!
The polyline used is: cjqeHc~nfBrwVc}RfrO{kA~eMgxGbbNn~B~dZz~D~{G~le@otQ~}d@~jCf}QzeIvyEzpFbmFktHblDsaCjsKn|Mf@nqAzkPsnIblD_tAvsR_b@blX{jD~k@sjKkaEo~BwaLku@z|EwxCfDoKjpOkiFkdKzr@obPktHbvIneBbxMoiEjsK{dBfhTcqIrrBgpF{kA{fFnlA{cEnfDgdGb[_qEkdFw}HfOonJj\glC~zOotBnrCkhNfqCcVw
O{tIfxGfwE~fJcaL~aJciCouSodOzh@_xIoqA_l@srQw{IoA_vEjRseFw|UbdCgvHfiBkvGjrNo{Zzw@{fi@g@_gOsyKwiMvsCwh_@~qLomHoKokSkHcsWzrJcaBnaI_mBrqOvzBn
GbrFjnPr}Dj~HcsCjbL_kM
Though the issue occurs with all used the Polylines I’ve tried for different European Cities