{
    "version" : "https://jsonfeed.org/version/1",
    "content" : "news",
    "type" : "single",
    "title" : "Wherever You Go, There We Are: the Geolocation API |Digital.gov",
    "description": "Wherever You Go, There We Are: the Geolocation API",
    "home_page_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/","feed_url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/2015/11/23/wherever-you-go-there-we-are-the-geolocation-api/index.json","item" : [
    {"title" :"Wherever You Go, There We Are: the Geolocation API","summary" : "No matter how you go mobile, you can meet your user’s needs. Recommendations based on location are plentiful, particularly on native apps. But don’t fret, agencies with mobile websites: you can also get in the location customization game. Geolocation is a W3C scripting API that can be used with JavaScript in Web browsers. In the","date" : "2015-11-23T13:00:37-04:00","date_modified" : "2025-01-27T19:42:55-05:00","authors" : {"awichman" : "Ashley Wichman","leo-yang" : "Leo Yang"},"topics" : {
        
            "application-programming-interface" : "Application programming interface",
            "mobile" : "Mobile"
            },"branch" : "bc-archive-content-3",
      "filename" :"2015-11-23-wherever-you-go-there-we-are-the-geolocation-api.md",
      
      "filepath" :"news/2015/11/2015-11-23-wherever-you-go-there-we-are-the-geolocation-api.md",
      "filepathURL" :"https://github.com/GSA/digitalgov.gov/blob/bc-archive-content-3/content/news/2015/11/2015-11-23-wherever-you-go-there-we-are-the-geolocation-api.md",
      "editpathURL" :"https://github.com/GSA/digitalgov.gov/edit/bc-archive-content-3/content/news/2015/11/2015-11-23-wherever-you-go-there-we-are-the-geolocation-api.md","slug" : "wherever-you-go-there-we-are-the-geolocation-api","url" : "/preview/gsa/digitalgov.gov/bc-archive-content-3/2015/11/23/wherever-you-go-there-we-are-the-geolocation-api/","content" :"\u003cp\u003eNo matter \u003ca href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/2015/10/07/is-your-agency-winning-its-mobile-moments/\"\u003ehow you go mobile\u003c/a\u003e, you can meet your user’s needs. Recommendations based on location are plentiful, particularly on native apps. But don’t fret, agencies with mobile websites: you can also get in the location customization game. \u003cdiv class=\"image\"\u003e\n  \u003cimg\n    src=\"https://s3.amazonaws.com/digitalgov/_legacy-img/2015/11/600-x-400-Mobile-phone-gps-navigation-travel-destination-location-and-positioning-concept-cybrain-iStock-Thinkstock-493553122.jpg\"\n    alt=\"Mobile phone gps navigation, travel destination, location and positioning concept of a map and single marker over a smart phone\"/\u003e\u003c/div\u003e\n\n\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"http://dev.w3.org/geo/api/spec-source.html\"\u003eGeolocation\u003c/a\u003e is a W3C scripting \u003ca href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/2013/04/30/apis-in-government/\"\u003eAPI\u003c/a\u003e that can be used with JavaScript in Web browsers. In the past, geolocation could only be done in native apps through a mobile programming API. With the Geolocation API, a mobile web app can request a user’s location.\u003c/p\u003e\n\u003cp\u003e\u003cdiv class=\"image\"\u003e\n  \u003cimg\n    src=\"https://s3.amazonaws.com/digitalgov/_legacy-img/2015/11/250-x-445-Find-Your-Park-Geolocation-phone-screenshot.jpg\"\n    alt=\"Screen capture of the Find Your Park service on an iPhone asking for permission to use the phone\u0026#39;s Current Location.\"/\u003e\u003c/div\u003e\n\nThere are numerous ways federal agencies could use this API. For example, the National Park Service (NPS)’s \u003ca href=\"http://findyourpark.com/find\"\u003eFindYourPark.com\u003c/a\u003e provides customized recommendations based on a user’s location. As noted in a \u003ca href=\"/preview/gsa/digitalgov.gov/bc-archive-content-3/2015/06/30/celebrating-parks-creating-connections-nps-prepares-for-2016-centennial/\"\u003eprevious DigitalGov article\u003c/a\u003e, NPS metadata from \u003ca href=\"http://www.nps.gov/index.htm\"\u003eNPS.gov\u003c/a\u003e is pulled over to the FindYourPark website, including information about \u003ca href=\"http://findyourpark.com/find#centennial_events\"\u003eCentennial Rvents\u003c/a\u003e and the maps for the find feature.\u003c/p\u003e\n\u003cp\u003eGeolocation is not part of W3C HTML5 or the WHATWG HTML. However, W3C has published specifications to standardize this API to retrieve the geographical location information for a client-side device.\u003c/p\u003e\n\u003cp\u003eAdditional Resources:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"http://www.w3schools.com/HTML/html5_geolocation.asp\"\u003eCoding examples for developers\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"http://caniuse.com/#feat=geolocation\"\u003eGeolocation API browser compatibility chart\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n"}
  ]
}
