geolocation

Example of getting country and state/city from google maps api using .net

Hi does anyone have a snippet of sample code to get country and state/city via the Google Maps API of a request from an asp.net application (in code behind)? Any help much appretiated! Thanks! ...

Getting user's location using Google from .NET code

I want to store a user's current location on an ASP.NET MVC website for the duration of a session. Because I want to use the location server-side, the way I think this should work (maybe other suggestions?) is that when a user first hits the website, I get the location and store it in the session, so on later requests it does not have to...

Simple calculations for working with lat/lon + km distance?

Is there a simple calculation I can do which will convert km into a value which I can add to a lat or lon float to calculate a bounding box for searches? It doesn't need to be completely accurate. For instance: if I were given a lat/lon for London, England (51.5001524, -0.1262362) and I wanted calculate what the lat would be 25km east/w...

Fastest way to find the location(zip, city, state) given latitude/longitude.

I need a free(open-source) solution that given the lat/lng can return the closet city/state or zip. mysql is not an option, a small lightweight database would be the best if possible. Updates: No web services, with 50 million impressions a day even the smallest addon hurts so adding a service request would kill response time. I would ...

Developing Geographic Thematic Maps with R

There are clearly a number of packages in R for all sorts of spatial analysis. That can by seen in the CRAN Task View: Analysis of Spatial Data. These packages are numerous and diverse, but all I want to do is some simple thematic maps. I have data with county and state FIPS codes and I have ESRI shape files of county and state boundarie...

How to determine if an IP address belongs to a country

How would i determine the country that a spcific IP address is originating from using c#. I need to use this to check if connections originate from a specific country. ...

How to classify users into different countries, based on the Location field

Most web applications have a Location field, in which uses may enter a Location of their choice. How would you classify users into different countries, based on the location entered. For eg, I used the Stackoverflow dump of users.xml and extracted users' names, reputation and location: ['Jeff Atwood', '12853', 'El Cerrito, CA'] ['Jarr...

GeoLocation API

Hello all, I have just come across this great API: http://ipinfodb.com/ip%5Flocation%5Fapi.php However, I would like to also retrieve the continent. Is this even possible as I can not find it. Maybe there is another API that is freely available that will offer city, country and continent? I have tried Googles AJAX API but they don't o...

How does the binary DAT from Maxmind work?

Maxmind offers a binary DAT file format for downloading their GeoIP database. http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz Does anyone know how this has been packaged? Also, is there any kind of copy protection on the data? I'd like to offer up a set of data in a similar way. Anyone with any knowledge of thi...

Google Maps API Geocode Synchronously

I was wondering if its possible to geocode something using googlemaps api synchronously so instead of waiting for a callback function to be called, it would wait for a value to be returned. Has anyone found a way to do something like this. P.S.: I'm using version 3 of the api ...

Finding the center point of a city

We are purchasing a database of zip codes and their corresponding Lat/Long. I want to store cities in a separate table with a lat/long point representing the center of the city. Can I calculate that based on taking all of the zips that belong to that city, getting the min/max points for each direction, and taking the center point of th...

Parsing latitude and longitude with Ruby

Hi! I need to parse some user submitted strings containing latitudes and longitudes, under Ruby. The result should be given in a double Example: 08º 04' 49'' 09º 13' 12'' Result: 8.080278 9.22 I've looked to both Geokit and GeoRuby but haven't found a solution. Any hint? ...

Location search autocomplete that integrates with bing/google geocoding.

Any nice suggestions on auto complete location searches, that integrate with something like Google or Bings location data? I am wanting capture the location of my users on sign up, currently I have a free text input box. I am wanting to have some sort of auto complete that guides the user to inputting more sanitised information, ideally...

Build custom map like gothere.sg

I am looking for a reference on how custom map like gothere.sg is built. As far as I can figure out from understanding their architecture, they are using their own map server (their visual map looks so beautiful). On geocoding and much other functionalities, they're still reliant on Google Maps API. Please post what you understand from ...

Geolocation using hostip with javascript

This is probably a very silly question. I am trying to do a geolocation to find a users address based on their ip address using the api provided by http://www.hostip.info/use.html. I am using this in conjuction with jquery with the following code: $.get("http://api.hostip.info/get_html.php", function(data){ alert("Data Loaded: " + d...

Getting zip-code + 4 from latitude/longitude

Does anyone know the best way to use the iPhone location services (lat/long) to determine the zip code+4 of the user? Does MKReverseGeocoder have the ability to pull back zip+4? Thanks! -tony ...

Which Devices Support Javascript Geolocation via navigator.geolocation ?

The iPhone supports geolocation in mobile Safari via the following call: navigator.geolocation.getCurrentPosition( function(pos){ var lat = pos.coords.latitude; var long = pos.coords.longitude; }, function(){ /* Handler if location could not be found */ } ); I'd like to build a good list of devices that have one of...

How can i show blackberry map in my application?

I wish to show Blackberry map in my application in my application.Can anyone tell me how to display the blackberry map in my application?If u can pls provide me some code snippet. regards, s.kumaran. ...

Physical Address to GeoLocation UK

Is there a good physical address to GeoLocation conversion database in the UK? I am trying to use this to build a globrix style search box http://www.globrix.com/ for a web application. Any pointers will be nice. I have been searching for hours. I have found several that convert UK Postcodes into Geolocation. But I need the addresses lis...

Google Maps Stopped working suddenly (Blank Map)

i am starting with google maps. just learning. awhile ago, it was working. now its not. everything seems to workin UI Controls, Markers/Overlay but the map is blank. google.load("jquery", "1.3.2"); google.load("maps", "2"); google.setOnLoadCallback(function() { var map = new google.maps.Map2(document.getElementById("map")); map...