city

Get city name and postal code from Google Place API on Android

☆樱花仙子☆ 提交于 2019-11-30 17:34:23
I'm using Google Place API for Android with autocomplete Everything works fine, but when I get the result as shown here , I don't have the city and postal code information. private ResultCallback<PlaceBuffer> mUpdatePlaceDetailsCallback = new ResultCallback<PlaceBuffer>() { @Override public void onResult(PlaceBuffer places) { if (!places.getStatus().isSuccess()) { // Request did not complete successfully Log.e(TAG, "Place query did not complete. Error: " + places.getStatus().toString()); return; } // Get the Place object from the buffer. final Place place = places.get(0); // Format details of

Tiger/Lines or shapefiles of USA states and cities?

佐手、 提交于 2019-11-30 05:52:07
i've been asked to generate some demographic reports (crime rates, birth/deaths, etc) based on state and cities for the USA. I have all the demographic data (provided by our client) but can't seem to find any places which have the boundaries (read: LAT/LONG's) of the USA States and their cities. Our data are Lat/Long points of data (eg. a crime, a birth, etc) and we want to get some mapped reports and also datamine using Sql server (we're using MS Sql 2008, but that shouldn't impact this question). So .. can anyone direct me to where there are some state and city boundary sources ? I know our

is there another site like freegeoip.net [closed]

淺唱寂寞╮ 提交于 2019-11-30 00:07:53
is this site not working any more as i cant get it to work, it used to work. is there any RELIABLE service like it http://freegeoip.net/ You can also checkout: http://geoip.nekudo.com/ I just started this as an alternative to freegeoip. Is's completely free and open-source so you can also setup your own copy if you like. To setup your own instance this is what you have to to: Pull the sourcecode from the github repsitory and put it on your server. Run "composer install" to load all dependencies. (Install composer if you don't have it yet) Download a copy of the GeoLite2 database and put it

Regular Expressions for City name

…衆ロ難τιáo~ 提交于 2019-11-29 02:33:58
I need a regular Expression for Validating City textBox, the city textbox field accepts only Letters, spaces and dashes(-). pcalcao This can be arbitrarily complex, depending on how precise you need the match to be, and the variation you're willing to allow. Something fairly simple like ^[a-zA-Z]+(?:[\s-][a-zA-Z]+)*$ should work. warning : This does not match cities like München, etc, but here you basically need to work with the [a-zA-Z] part of the expression, and define what characters are allowed for your particular case. Keep in mind that it also allows for something like San----Francisco,

Regular Expressions for City name

[亡魂溺海] 提交于 2019-11-27 21:53:20
问题 I need a regular Expression for Validating City textBox, the city textbox field accepts only Letters, spaces and dashes(-). 回答1: This can be arbitrarily complex, depending on how precise you need the match to be, and the variation you're willing to allow. Something fairly simple like ^[a-zA-Z]+(?:[\s-][a-zA-Z]+)*$ should work. warning : This does not match cities like München, etc, but here you basically need to work with the [a-zA-Z] part of the expression, and define what characters are

How to get city name based on IP address in java?

醉酒当歌 提交于 2019-11-27 14:54:48
Is it possible to know the city name based on IP address in java? are you using jsp or what ? for city name over client side you can use google's API which will return you the geographical details of the user mapped with the IP. As google's documentation say you can get the following When populated, the google.loader.ClientLocation object is populated with the following metro-level granularity properties: * ClientLocation.latitude — supplies the low resolution latitude associated with the client's IP address * ClientLocation.longitude — supplies the low resolution longitude associated with the

get city from geocoder results?

北战南征 提交于 2019-11-27 11:39:40
Having problems getting the different arrays content from geocoder results. item.formatted_address works but not item.address_components.locality? geocoder.geocode( {'address': request.term }, function(results, status) { response($.map(results, function(item) { alert(item.formatted_address+" "+item.address_components.locality) } }); // the array returned is; "results" : [ { "address_components" : [ { "long_name" : "London", "short_name" : "London", "types" : [ "locality", "political" ] } ], "formatted_address" : "Westminster, London, UK" // rest of array... any help appreciated! Dc v3nt Got

get city from geocoder results?

这一生的挚爱 提交于 2019-11-26 15:40:15
问题 Having problems getting the different arrays content from geocoder results. item.formatted_address works but not item.address_components.locality? geocoder.geocode( {'address': request.term }, function(results, status) { response($.map(results, function(item) { alert(item.formatted_address+" "+item.address_components.locality) } }); // the array returned is; "results" : [ { "address_components" : [ { "long_name" : "London", "short_name" : "London", "types" : [ "locality", "political" ] } ],