How could I tie a Geocoder into a website?

482
6
06-12-2013 08:04 AM
GardnerMayo
New Contributor
I would like to be able to have a webpage that allows users to type an address and the website would respond saying whether there is a match in the geocoder or not. Any Ideas?
Tags (2)
0 Kudos
6 Replies
JoeBorgione
MVP Emeritus
ArcGIS Server
That should just about do it....
0 Kudos
GardnerMayo
New Contributor
Yes, we already have arcgis server for the maps, but i do not want a map output, I just want a text output that tells the status of the geocoder
0 Kudos
T__WayneWhitley
Frequent Contributor
You have an in-house locator you have built?  If you do, then to further what Joe already said, you can publish a geocoding service:

http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Geocode_servi...


Enjoy,
Wayne
0 Kudos
GardnerMayo
New Contributor
Yes, we already have it published to arcgis server for the flex map. But we need a way for anyone, without using a map, to be able to type in an address on some kind of webpage interface, and the webpage will output the status of the geocoder. Im looking for some kind of webpage template.
0 Kudos
T__WayneWhitley
Frequent Contributor
You can use REST...suggest you ask this question in the web API forum of your choice, choose one e.g., JavaScript?

For example, ESRI publishes a relatively new World Geocoding service and a REST url request may look something like the below -- the 'match score' is of course affected by the text string you feed in...I purposely 'lowered' the score by feeding in what is essentially too much textual information, "31 BAY DR, SADDLEBUNCH KEY, FL 33040".

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=31+BAY+DR%2C+SADDLEBUNC...

...and this example returns JSON:
{
 "spatialReference": {
  "wkid": 4326,
  "latestWkid": 4326
 },
 "locations": [
  {
   "name": "31 Bay Dr, Key West, FL, 33040",
   "extent": {
    "xmin": -81.592500999999999,
    "ymin": 24.622451000000002,
    "xmax": -81.590501000000003,
    "ymax": 24.624451000000001
   },
   "feature": {
    "geometry": {
     "x": -81.591500220058322,
     "y": 24.623450693295922
    },
    "attributes": {
     "Score": 90.480000000000004,
     "Addr_Type": "PointAddress"
    }
   }
  }
 ]
}


Enjoy,
Wayne
0 Kudos
GardnerMayo
New Contributor
Oh wow, this kind of what Im looking for! Ok i will look at the other forums on Ideas to build the web interface. Thanks
0 Kudos