Before the insert is sent can you capture the raw xml produced and
paste it here ?

Tom Wilson
Freelance Google Base Developer and Consultant
www.tomthedeveloper.com

Google Base Tools - http://dev.tomthedeveloper.com/googlebase
Featured Project : 
http://google-code-featured.blogspot.com/2008/02/google-base-competitor-analysis.html

On Nov 13, 12:05 pm, alex <[email protected]> wrote:
> Hi,
> I'm trying to set the latitude and longitude using the Zend framework
> (when uploading a housing item), so that the street address will not
> be used in geocoding:
>
> 1st way:
> ------
> $newEntry->addGbaseAttribute('latitude', $offer->lat, 'text');
> $newEntry->addGbaseAttribute('longitude', $offer->lng, 'text');
> $newEntry->addGbaseAttribute('location', $location, 'location');
> ------
>
> It simply ignores it this way. I see it listed as an atribute, but on
> google maps - real estate it does not use my latitude and longitude,
> rather goecodes that loose address.
>
> 2nd way:
> ------
> $location = 'Bacau, Romania';
>
> if (($offer->lat) and ($offer->lng)){
>         $location .= "<g:latitude>{$offer->lat}</g:latitude>";
>         $location .= "<g:longitude>{$offer->lng}</g:longitude>";
>
> }
>
> $newEntry->addGbaseAttribute('location', $location, 'location');
> ------
>
> I'm getting "We don't understand this location. Please type in a valid
> location - e.g. street (optional), city, state, postal code"
>
> How do you get it to use the coordonates in PHP? :(
>
> Thanks

--

You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/google-base-data-api?hl=.


Reply via email to