Created
March 7, 2011 05:14
-
-
Save anathematic/858105 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Suggested way to present queries on resources based on longitude / latitude? | |
/api/stores/long/50/lat/50 | |
/api/stores?long=50,lat=50 | |
/api/stores/by-geo/50/50 (long should always be first by convention anyway?) |
juliocesar
commented
Mar 7, 2011
I assume commas are fine in urls, right?
+1 for /api/stores?latlong=-27.467778,153.027778
. Commas are perfectly fine within query parameters.
Comma separated looks pretty good to me.
Could be confusing for eurozone users who use commas in place of periods for decimal points.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment