Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #2687

Re: From city to lati and long

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: From city to lati and long
Date 2011-08-01 19:07 -0400
Organization A noiseless patient Spider
Message-ID <j17bjc$83a$1@dont-email.me> (permalink)
References <81ebc64b-470f-4359-8e29-79e3553212c9@15g2000vbw.googlegroups.com>

Show all headers | View raw


On 8/1/2011 5:20 PM, Sarah wrote:
> Hi, I've created a PHP script that reads values from XML file
>
> and that calculate longi and lati
>
> $town = $event->town;
> $position = $town . " " . $city . " " . $state;
> $whereurl = urlencode($position);
> $location = file("http://maps.google.com/maps/geo?q=
> $whereurl&output=csv&key=ABQIAAAAvp3__HwvT3VkixIIbsW0axQuKI_6t1bH2P0vCI_Q8jfpn8qdNBQMnneljxh9czilkau_bYSCXteS_A");
> list ($stat,$acc,$latitude,$longitude) = explode(",",$location[0]);
>
>
> it works but sometimes lati and longi are both set to zero (in the
> same record) .... and if I re-execute script I show differents records
> set to zero .... can you help me?
>
> Thanks

Did you try asking in Google developer's support?

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

From city to lati and long Sarah <dandi.box@gmail.com> - 2011-08-01 14:20 -0700
  Re: From city to lati and long Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-01 19:07 -0400
    Re: From city to lati and long Sarah <dandi.box@gmail.com> - 2011-08-02 01:19 -0700
      Re: From city to lati and long Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-02 06:50 -0400
    Re: From city to lati and long Sarah <dandi.box@gmail.com> - 2011-08-02 09:20 -0700
      Re: From city to lati and long Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-02 14:44 -0400
      Re: From city to lati and long A.Reader <anonymously@example.com> - 2011-08-02 15:53 -0400
    Re: From city to lati and long Sarah <dandi.box@gmail.com> - 2011-08-03 15:08 -0700
      Re: From city to lati and long Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-03 23:20 -0400
        Re: From city to lati and long Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-08-04 15:27 +0000
          Re: From city to lati and long Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-04 14:24 -0400
            Re: From city to lati and long Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-08-04 19:17 +0000
              Re: From city to lati and long Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-04 15:22 -0400
                Re: From city to lati and long Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-08-04 23:21 +0000
                Re: From city to lati and long Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-04 19:58 -0400
                Re: From city to lati and long Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-08-05 04:49 +0000
                Re: From city to lati and long Jerry Stuckle <jstucklex@attglobal.net> - 2011-08-05 06:20 -0400
  Re: From city to lati and long Paul Herber <paul@pherber.com> - 2011-08-04 09:03 +0100

csiph-web