geocoding

Geocoding example not working

旧城冷巷雨未停 提交于 2020-01-06 08:46:21
问题 I have written a simple geocoding application but it is not working.I have given all necessary permissions.Please someone tell me where i am going wrong.Thanx in advance. public class ForgeocdingActivity extends Activity { Geocoder gc; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final EditText ed=(EditText)findViewById(R.id.editText1); Button b1=(Button

use Google geocode to return street name and list of house numbers using php

不想你离开。 提交于 2020-01-06 02:41:11
问题 I have a registration form that I would like to fill with data when a user arrives on this section of the form. The first part of the form asks for the postcode/zip code. On the form load I would like to be able to display a list of house numbers with the street name. This is what I have to return the data <?php $postcode = 'DH90ER'; $geourl = file_get_contents("http://maps.googleapis.com/maps/api/geocode/json?address=$postcode&sensor=true"); $array = json_decode($geourl,TRUE); print header(

Geocoder not putting out Address

梦想与她 提交于 2020-01-05 10:08:43
问题 I have trouble shot it down to the Geocoder not putting out an address, but I do not know why. public void button_address (View v){ //Create Geocoder gc = new Geocoder(this, Locale.getDefault()); //The string pulled from the app to be used in the Geocoder String loc = address.getText().toString(); //The list the Geocoder will fill List<Address> add; //Check to make sure there is a value in loc Log.d(TAG, loc); Log.d(TAG, "Before try/catch"); try { //Request Gecoder return string loc with an

trying to get location from address using google api v3

 ̄綄美尐妖づ 提交于 2020-01-04 14:13:46
问题 I have this javascript in my html what i want to do here is to get a map representation given the location <script type="text/javascript"> var geocoder; var map; function getmaploc() { geocoder = new google.maps.Geocoder(); var myOptions = { zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; geocoder.geocode( 'cairo', function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ map: map,

trying to get location from address using google api v3

心不动则不痛 提交于 2020-01-04 14:12:47
问题 I have this javascript in my html what i want to do here is to get a map representation given the location <script type="text/javascript"> var geocoder; var map; function getmaploc() { geocoder = new google.maps.Geocoder(); var myOptions = { zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; geocoder.geocode( 'cairo', function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ map: map,

Google Maps Geocode Status OVER_QUERY_LIMIT

心已入冬 提交于 2020-01-04 13:41:49
问题 I understand that Google caps requests to 2,500 per day... but there's no way on EARTH that I've made that many requests today, and I just keep getting 'OVER_QUERY_LIMIT' $street_no = get_post_meta($prop->ID, 'street_no', true); $street = get_post_meta($prop->ID, 'street', true); $street_suffix = get_post_meta($prop->ID, 'street_suffix', true); $addr = urlencode( $street_no." ".$street." ".$street_suffix." BC Canada" ); $url = 'http://maps.googleapis.com/maps/api/geocode/json?address='.$addr.

Google Maps Geocode Status OVER_QUERY_LIMIT

北战南征 提交于 2020-01-04 13:41:19
问题 I understand that Google caps requests to 2,500 per day... but there's no way on EARTH that I've made that many requests today, and I just keep getting 'OVER_QUERY_LIMIT' $street_no = get_post_meta($prop->ID, 'street_no', true); $street = get_post_meta($prop->ID, 'street', true); $street_suffix = get_post_meta($prop->ID, 'street_suffix', true); $addr = urlencode( $street_no." ".$street." ".$street_suffix." BC Canada" ); $url = 'http://maps.googleapis.com/maps/api/geocode/json?address='.$addr.

Google Maps Geocoder: Return postal_code

寵の児 提交于 2020-01-04 05:16:14
问题 I'm using Jquery UI to autocomplete search for an address using Google Maps Geocoder, and when an address is selected it returns the geocode information. Here is the snippet: $('#address-dropdown').autocomplete({ //Use geocoder to fetch lat+long values from an address input using google maps API source: function(request, response) { geocoder.geocode( {'address': request.term }, function(results, status) { response($.map(results, function(item) { return { label: item.formatted_address, value:

Incorrect results returned from a partial UK postcode

戏子无情 提交于 2020-01-03 16:56:42
问题 I am having an odd issue with Google Maps which their documentation doesn't seem to cover. We have a page in our application that returns a list of engineer locations ordered by distance when an end user enters a postcode. We have recently noticed that some end users are entering partial UK postcodes ( L1 , BB7 or SE10 ). These tend to be fine and work as intend but if the user searches for a partial postcode for the Manchester area they get odd results with distances of over 100 miles being

Incorrect results returned from a partial UK postcode

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 16:56:27
问题 I am having an odd issue with Google Maps which their documentation doesn't seem to cover. We have a page in our application that returns a list of engineer locations ordered by distance when an end user enters a postcode. We have recently noticed that some end users are entering partial UK postcodes ( L1 , BB7 or SE10 ). These tend to be fine and work as intend but if the user searches for a partial postcode for the Manchester area they get odd results with distances of over 100 miles being