I was given instructions for using an API and I'm having difficulty understanding how to convert the coordinates into the proper format. According to the API docs I am supposed to pass points or an array of polygon points:
To perform a point query, which finds the parcel which contains the given query point, make a request like the below: https://reportallusa.com/api/start_parcels_txn.php?client=xxxxx&si_srid=4326&spatial_intersect=[wkt_geometry] Where [wkt_geometry] is a url-encoded OGC Well-Known Text point or polygon geometry. The spatial reference system is WGS-84 lat/lon (EPSG 4326).
In the example, I'm given coordinates that have been converted to something different than Decimal Degrees:
For example, to perform a point query at the coordinate (-9663031.13, 3962292.03) which falls in the parcel at 1400 University Blvd, Birmingham, AL, form a point string: POINT(-9663031.13, 3962292.03) then urlencode it and pass as the "spatial_intersect" value: https://reportallusa.com/api/start_parcels_txn.php?client=xxxxx&spatial_intersect=POINT(-9663031.13%203962292.03) The response from the server is: {"status":"ok","parcel_count":1,"txn_id":"xxxxx"}
Now I've never seen coordinates in that type of format. I've looked at http://proj4.org/ for conversion tools or anything might be of use, but to no avail.
Does anyone have any idea what format these coordinates are in and if so, how can convert these in iOS? Thanks in advance.