Displaying 20 results from an estimated 5000 matches similar to: "ZipCode Search"
2006 Jun 18
3
ActiveRecord Help - Not finding Data
Hello,
I''m farily new to RoR and am having a problem trying to retrieve data
from my database. Here is the code from my controller:
def index
zip = params["zip"]
@zip1 = Zipcode.find(:first, :conditions => ["zip = ?", zip])
lat = @zip1.latitude.to_f
long = @zip1.longitude.to_f
radius = 50
@bookstores = Bookstore.find_by_sql ["SELECT * FROM
2006 Feb 03
4
Zipcode Search
Is there any package that I could use for zipcode search.
I want to display schools that near a particular zipcode. I have no idea how
to do this. It will be great if anyone can point me where I could find info
--
Rgds,
--Siva Jagadeesan
http://www.varcasa.com/
Education Through Collabration
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Oct 15
1
calculate out of different lists in R
hey There
I've been trying to match 2 lists in R I have an excel sheet containing all
the 51states of amerika devided by zipcode. the columns are : zip,city,
state, latitude,longitude,count so now I want R to make a new table that I
could use to draw a map. The table should consist the name of the state plus
the count. Like I said I have all the zipcodes and the count for the
zipcodes, so now
2012 Oct 26
1
using match-type function to return correctly ordered data from a dataframe
I am regularly running into a problem where I can't seem to figure out how
maintain correct data order when selecting data out of a dataframe. The
below code shows an example of trying to pull data from a dataframe using
ordered zip codes. My problem is returning the pulled data in the correct
order. This is a very simple example, but it illustrates a regular problem
that I am running into.
2005 Jun 10
6
us zipcode data map
i've search the email archives, searched the documention
of various map packages and done an R-site search, but
have been unable to find direct resources for creating maps
of the US that are colored or annotated or ... by zipcode
data.
For example, create a map of the US and color each zipcode
region by its population using two vectors z,p containing the
zipcode and population,
2006 Jul 19
5
Model Validation - with a twist
I''m stuck in a catch-22 type problem. I have an insert form for a table
that uses the validation in the model. i.e. When you click submit on the
form and haven''t filled in the required fields then you get the nice
rails error messages saying "field can not be blank". This works fine
until I introduce some more logic.
What I''m trying to do is to validate
2006 Feb 09
1
converting lat-long coordinates to Albers Conical Equal Area coordinates
####################################################################################
We have used maptools to construct state, county, township, census-tract,
and zipcode
level R maps with an Albers Conical Equal Area projection. We would like
to be able to
plot the location of weather stations or other point locations on the
maps. The data
the point locations are in latitude-longitude units
2009 Dec 14
1
lapply , mapply questions
Dear all,
i have a programming problem that should be simple, though i am stuck with it. Please note that this is not a specific geonames problem, though i use it as an example - it´s just a basic problem with lapply.
I use the geonames webservices with the R geonames packages which works almost smoothly.
I have a vector of Zipcodes and i want to do a geonames lookup for all of them, which
2006 Feb 19
2
Prototype Ajax + File Uploading-- How?
Good evening!
I''m currently trying to submit some data and a file upload through Ajax.
I''m using rails & prototype, and somewhere there''s a disconnect. I''m
reasonably convinced the file upload isnt being sent at all, or if it is,
Rails has absolutely no idea. The form itself heads with:
<form onsubmit="new
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
2012 Jan 06
2
Zipcode validation
Hi All,
How to validate Zip/Postal code enterd is valid based on country
selected? Is there any plugin for checking zipcode format for different
countries..
Thanks
--
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
2013 Jan 21
2
Regex for ^ (the caret symbol)?
Hello R-helpers,
I am trying to search for string that includes the caret symbol, using the
following code:
grepl("latitude^2",temp)
And R doesn't like that. It gives me:
> temp<-c("latitude^2","latitude and latitude^2","longitude^2","longitude
and longitude^2")
> temp
[1] "latitude^2" "latitude and
2007 May 23
1
Zipcodes latitude and longitude
I see several mapping libraries but cannot find how to do a simple task.
Starting with a vector of zip codes (in the United States and in Canada) I
would like to automatically lookup the corresponding coordinates. Can you
suggest a package and function that I should turn to?
I would also like to automatically pull in the altitude, and some climate
data.
--
Farrel Buchinsky
[[alternative HTML
2010 Nov 01
0
function: colvolve
Hi list,
I have a problem to solve which I believe I shoudl use the convolve to solve
it, but I could not figure out how to do it.
I got mydata, which is a dataframe which has 7 locations, each location has
a longitude,latitude and a value.
considering a step of 0.5 degree for longitudes and latitudes, I got 15
points for longitude and 15 points for latitude. Then
I created a grid, mygrid, which
2011 Jun 14
1
Invalid Regular Expression
I'm working with some data, and am trying to generate it in the following
format.
state city zipcode
I like pizza 0 0 0
I live in Denver 0 1 0
All the fun stuff is in Alaska 1 0 0
he lives in 66062
2011 Oct 17
0
geoXY
Hi Everyone,
I am new to R Language and was wondering if someone could help me convert my latitude-longitude coordinates to cartesian coordiantes using geoXY() from SoDA package? I have been uploading my coordinates from a text file into R (they originate as a dataframe) and them converting them to a matrix using the data.matrix() function. But I think I'm running into trouble when I try to
2009 Mar 06
1
help to use ppp in spatial analysis
Hi,
i am using spatstat package for spatial data analysis and now i have a problem to create a point pattern. The points are in file "points.txt" (first column for Latitude and second column for Longitude ) and I imported them and separated each columns in two arrays x and y. If I plots x and y ( e.g plot(x,y) ) the result appears in square area without problems and the scale is
2009 Apr 08
2
Reshape - strange outputs
Dear R Users,
I am using the reshape package to reformat gridded data into column format using the code shown below. However, when I display the resulting object, a single column is fomed (instead of three) and all the latitude values (which should be in either column one or two) are collected at the bottom. Also, the NA values aren't removed, despite this being requested in the code.
Code:
2002 Mar 10
1
lattice library: xyplot and polygons
Dear R-Helpers,
Is there a way to draw shaded (filled) polygons in panel graphs produced
by xyplot ? I made different trials (see below) with polygon() and
grid.polygon() but polygons are not drawn (probably for the same reason
that prevents the use of lines, points, etc. in xyplot panels).
Thanks in advance,
Renaud
> Water
id label longitude latitude
515 21 Zone inondable
2012 Feb 23
4
saving all data in r object
I have 100 data files, which contains very huge data sets of location
details ( e.g latitude, longitude, time, temp)
Now I would like to save the all data of these 100 files in r object, so I
can reload data any time.
* Every file has different length of data
latitude <- NULL
longitude <- NULL
time <- NULL
temp <- NULL
for ( i in 1:100) {
data<-