Displaying 20 results from an estimated 8000 matches similar to: "Find city, state from supplied ZIP Code"
2009 Feb 23
2
geokit - using :through to connect models
hello..
i am currently trying to use :through to attach two of my models
together using geokit. for some reason, i am running into a problem:
ArgumentError: Unknown key(s): as
i have two models, one that is geocoded, and one that belongs to that
model. the models look like:
,----[ employer.rb ]
| class Employer < ActiveRecord::Base
| acts_as_mappable
| before_validation_on_create
2010 Dec 14
5
Build associated model confusion
I''m new to Rails3, and I''m just trying to get one last thing to work
before I call it a night. The situation is the following (please if
the code is horrible, just let me know, still learning):
I want to log a dive. I might have a new location on that dive at
which point I have to create a new Location, and then create the dive.
A dive has_one location. A location has_many
2006 Jun 29
11
AJAX Maps
Hi,
I would like to know if there is a library that provides an API to
support map scrolling, like the one available in google maps.
This is, I would like to create a user interface where the user is able
to see a small part of a large map. It can then move the view, thus
observing another part of the map. Additionally, I would also like to
provide a zoom mechanism.
Thanks in advance.
--
2012 Oct 23
1
Extracting results from Google Search
Dear list,
I have a long list of towns in Africa and would need to get their
geographical coordinates. The Google query [/TownName Country coordinates/]
works for most of the TownNames I have and give a nicely formatted Google
output (try Ingall Niger coordinates for an example). I would like to launch
a loop on the list of names I have and automatically extract the coordinates
given by Google.
2008 Jul 06
1
GeoKit / Form Validation
I am new to rails and have been scouring the web for the past two days
trying to figure out 2 things.
1) I am currently using a form with 2 models. The first is person, the
second is address. I attempted to duplicate the two models on one form
as seen in Advanced Rails Recipes and Railscasts, and they work fine -
except when there are validation issues on the address piece it just
returns saying
2009 Sep 20
3
coordinates for geokit
i''m trying geokit and loving it, but i''m seeing really odd stuff on
distances, I''m wondering about the coordinates i''ve got in my DB. I
don''t think they''re standard format, they look like this.
east 6''41.6 north 45''24.8
Can anyone advise please ?
--
Posted via http://www.ruby-forum.com/.
2009 May 04
6
cucumber - when to stub/mock
I''m just curious about this, since my solution involved stubbing a
call to GeoIp.
Is there a good rule of thumb for when you make exceptions to the ''no
stubbing'' philosophy of Cucumber?
My step was: "Given I am accessing the site from Japan," but I can
think of other situations - mostly when interacting with web services,
that I''d probably
2016 Jun 21
2
Problemas con tildes y otros caracteres en R y RStudio
Hola.
Tengo algún tipo de problema con las tildes, a la hora de trabajar en R o
en RStudio, que no sé resolver.
Intentando reproducir en dos PCs distintos, ambos con Windows 7, uno de los
últimos ejercicios que ha publicado Carlos Gil Bellosta en su blog (
https://www.datanalytics.com/2016/06/20/6602-767-km-alrededor-de-espana-para-visitar-todas-sus-capitales-de-provincia/),
me ocurre que al
2011 Sep 19
14
gmaps4rails "acts_as_gmappable" error
Hi all,
I started to see fun of gmaps4rails gem from
https://github.com/apneadiving/Google-Maps-for-Rails.
After everything done. When visited the locahost, i got the following
error.
undefined local variable or method `acts_as_gmappable'' for #<Class:
0x31a9da8>
the error is due to i have line "acts_as_gmappable" in my model.
Anybody knows how this is
2006 Apr 19
9
geolocation db?
I''m currently planning a social app in Rails that relies on being able to
see how far you are from everyone else.
It''s my intention to store rough geo-coordinates as part of the sign up
process. My intention is to capture their zipcode or postal code, and then
be able to query a webservice once for that data. It''s also possible that
there might be a database or even
2010 Mar 16
2
Retrieving latitude and longitude via Google Maps API
Does anyone have any experience retrieving latitutde and longitude for
an address from the Google Maps API?
I'd like to have an R script that submits a street address, city, state,
and zip code and returns the coordinates. So far, I've been submitting
the coordinates from another program, then loading the coordinates in R
and merging them back into the data frame I want to use.
2016 Jun 21
2
Problemas con tildes y otros caracteres en R y RStudio
Hola, Carlos.
A mí también me resulta raro, porque no me pasa siempre. Es un poco
aleatorio. Imagino que habrá alguna razón, y que el código de la página
estará relacionado, claro, pero no consigo averiguar a qué se debe.
Además las pruebas que hago me dejan todavía más perplejo.
Esto
Encoding(capitales)
me dice que el encoding es "unknow", pero luego esto
validUTF8(capitales)
me
2006 Feb 01
3
Parsing RDF coming from a URL
Hello,
i''m writing an application that needs geocoding information for locations
outside of the US.
I''m using the brainoff.com geocoding service
mappoint = Net::HTTP.new(''brainoff.com'', 80)
response = mappoint.get(''/geocoder/rest/?city=Gent,BE'')
logger.debug response.body
and the body of the response is in the following form :
<rdf:RDF
2016 Jun 21
2
Problemas con tildes y otros caracteres en R y RStudio
Hola, Carlos.
Pues, efectivamente, me ha ayudado.
Sobre la utilización de la función geocode con ciudades con tilde, me dio
Carlos Gil Bellosta anteriormente la idea de utilizar iconv para
transformar la cadena de búsqueda a UTF-8, y yo lo utilicé para intentar
transformar el output de html_table sin resultado:
capitales <- read_html("
2007 Aug 14
3
diffusing GIS data in maps
Hi-
I am trying to find a way to diffuse GIS data on a European map. I have a
dataset consisting of particular locations scattered across Europe,
along with magnitude and value information. I can plot these as discrete
points with something like the following:
"geocode" is a dataframe with four columns: LAT; LONG; MAGNITUDE;VALUE.
library(maps)
library(mapdata)
2007 Jul 24
3
geocoding addresses with ym4r google maps
Does anyone know how to geocode addresses using the YM4R Google Map
plug-in?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe
2005 Dec 14
3
Geocode for Ruby
Hey,
Does anybody know of a good Geocode library for Ruby, similar to Perl''s
Geocode::Postal, that i could use in my rail app? I need to do some "within
5 miles" calculations of zipcodes and i dont have a nice ruby (or gem)
utility to do it.
any help would be appreciated.
thanks
adam
_______________________________________________
Rails mailing list
2006 Jul 14
2
RESTful thinking - Need some guidance.
This is my first time working with REST and XML. My goal is to access
Google''s geocoding service using HTTP. Here''s the code I have so far:
require ''open-uri''
require ''rexml/document''
include REXML
url=''http://maps.google.com/maps/geo?''
address = ''q=1600 Amphitheatre Parkway Mountin View,CA''
address1 =
2010 Nov 08
1
API Google MAPS
Hello everybody,
I''m working with Version 3 of Google Maps JavaScript API, and I have
the next code:
In a layout of my application:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
2008 Sep 19
0
Rounding Errors using GeoKit
Hi all,
I''m trying to use the excellent GeoKit plugin to geocode addresses
entered by users. I use GeoKit to get latitude and longitude values,
then plot these using Google Maps.
The problem I have is that the maps produced tend to be slightly off
where they should be. Nearby addresses seem to be grouped to one
point, which suggests that the problem is in rounding the lat and lng
values